Skip to main content
Module

x/oauth2_client/mod.ts>ImplicitGrant

Minimalistic OAuth 2.0 client for Deno.
Go to Latest
class ImplicitGrant
extends OAuth2GrantBase
import { ImplicitGrant } from "https://deno.land/x/oauth2_client@v1.0.0/mod.ts";

Constructors

new
ImplicitGrant(client: OAuth2Client)

Methods

Builds a URI you can redirect a user to to make the authorization request.

getToken(authResponseUri: string | URL, options?: ImplicitTokenOptions): Promise<Tokens>

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.