(credential gh.Credential)
| 693 | } |
| 694 | |
| 695 | func validateRefreshableCredential(credential gh.Credential) error { |
| 696 | if credential.Token == "" { |
| 697 | return errors.New("access token is empty") |
| 698 | } |
| 699 | if credential.RefreshToken == "" { |
| 700 | return errors.New("refresh token is empty") |
| 701 | } |
| 702 | return nil |
| 703 | } |
| 704 | |
| 705 | func refreshablePath(hostname, username string) []string { |
| 706 | path := []string{hostsKey, hostname} |
no outgoing calls