AuthResult carries the outcome of AuthFlow. Refreshable is set only when the server issued a refresh token, so callers can store a refreshable credential in that case and a plain token otherwise.
| 28 | // AuthResult carries the outcome of AuthFlow. Refreshable is set only when the server issued a refresh token, so |
| 29 | // callers can store a refreshable credential in that case and a plain token otherwise. |
| 30 | type AuthResult struct { |
| 31 | Token string |
| 32 | Username string |
| 33 | Refreshable *gh.Credential |
| 34 | } |
| 35 | |
| 36 | // AuthFlow initiates an OAuth device or web application flow to acquire a |
| 37 | // token. The provided HTTP client should be a plain client that does not set |
nothing calls this directly
no outgoing calls
no test coverage detected