Struct github_app_auth::InstallationAccessToken [−][src]
pub struct InstallationAccessToken {
pub client: Client,
pub refresh_safety_margin: Duration,
// some fields omitted
}Expand description
An installation access token is the primary method for authenticating with the GitHub API as an application.
Fields
client: ClientThe reqwest::blocking::Client used to periodically refresh
the token.
This is made public so that users of the library can re-use this client for sending requests, but this is not required.
refresh_safety_margin: DurationThis time is subtracted from the expiration time to make it less likely that the token goes out of date just as a request is sent.
Implementations
Fetch an installation access token using the provided authentication parameters.