OAuthApi
Implementation to build a URL that will interact with a hosted OAuth service.
Parameters
The HTTP client to use for requests.
The strategy to select the code challenge method.
The random number generator to use for generating state and code challenges.
The clock to use for generating timestamps.
Constructors
Construct a new OAuth API instance.
Construct a new instance using the Bluesky OAuth client and always using the "S256" code challenge method.
Functions
Build an authorization request for the given client and scopes. This URL can be used to redirect the user to the OAuth server to log into their account.
Create a value for the DPoP header to be used in requests to the OAuth server.
Refresh an access token using the provided OAuth client, nonce, and refresh token.
Request an access token using the provided OAuth client, nonce, code verifier, and authorization code.
Revoke the provided oauthToken using the OAuth server's revocation endpoint.
Revoke the provided access token using the OAuth server's revocation endpoint.