Interface GitHubTokenProvider
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Acquires rotating GitHub tokens for one session.
Implementations return either a token with a positive remaining lifetime or an explicit cancellation. Production GitHub tokens typically last eight hours. Initial cancellation, callback errors, and invalid token responses reject session creation or resume instead of falling back to ambient authentication.
- Since:
- 1.0.0
-
Method Summary
Modifier and TypeMethodDescriptionAcquires a GitHub token for the supplied host and session context.
-
Method Details
-
getToken
Acquires a GitHub token for the supplied host and session context.- Parameters:
args- callback context- Returns:
- a future containing a token or cancellation result
-