(credential gh.Credential)
| 788 | } |
| 789 | |
| 790 | func validateRefreshableCredential(credential gh.Credential) error { |
| 791 | if credential.Token == "" { |
| 792 | return errors.New("access token is empty") |
| 793 | } |
| 794 | if credential.RefreshToken == "" { |
| 795 | return errors.New("refresh token is empty") |
| 796 | } |
| 797 | return nil |
| 798 | } |
| 799 | |
| 800 | func refreshablePath(hostname, username string) []string { |
| 801 | path := []string{hostsKey, hostname} |
no outgoing calls