AuthorizationCodeGrant
import { AuthorizationCodeGrant } from "https://raw.githubusercontent.com/cmd-johnson/deno-oauth2-client/master/mod.ts";
Implements the OAuth 2.0 authorization code grant.
§Constructors
§Methods
Builds a URI you can redirect a user to to make the authorization request.
By default, PKCE will be used.
You can opt out of PKCE by passing { disablePkce: true }
in the options.
When using PKCE it is your responsibility to store the returned codeVerifier
and associate it with the user's session just like with the state
parameter.
You have to pass it to the getToken()
request when you receive the
authorization callback or the token request will fail.
Parses the authorization response request tokens from the authorization server.
Usually you'd want to call this method in the function that handles the user's request to your configured redirectUri.
The complete URI the user got redirected to by the authorization server after making the authorization request. Must include all received URL parameters.