Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/oauth2_client/src/implicit_grant.ts>ImplicitGrant#getToken

Minimalistic OAuth 2.0 client for Deno.
Latest
method ImplicitGrant.prototype.getToken
import { ImplicitGrant } from "https://deno.land/x/oauth2_client@v1.0.2/src/implicit_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 the fragment (sometimes also called "hash") of the URL.

optional
options: ImplicitTokenOptions = [UNSUPPORTED]

Returns

Promise<Tokens>