(credential gh.Credential)
| 614 | } |
| 615 | |
| 616 | func validateRefreshableCredential(credential gh.Credential) error { |
| 617 | if credential.Token == "" { |
| 618 | return errors.New("access token is empty") |
| 619 | } |
| 620 | if credential.RefreshToken == "" { |
| 621 | return errors.New("refresh token is empty") |
| 622 | } |
| 623 | return nil |
| 624 | } |
| 625 | |
| 626 | func refreshablePath(hostname, username string) []string { |
| 627 | path := []string{hostsKey, hostname} |
no outgoing calls