Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Latest
method AuthorizationCodeGrant.prototype.getAuthorizationUri
import { AuthorizationCodeGrant } from "https://deno.land/x/oauth2_client@v1.0.2/src/authorization_code_grant.ts";

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.

Parameters

optional
options: AuthorizationUriOptionsWithPKCE

Parameters

options: AuthorizationUriOptionsWithoutPKCE