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

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.

Parameters

authResponseUri: string | URL

The complete URI the user got redirected to by the authorization server after making the authorization request. Must include all received URL parameters.

optional
options: AuthorizationCodeTokenOptions = [UNSUPPORTED]

Returns

Promise<Tokens>