Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

ImplicitGrant

import { ImplicitGrant } from "https://raw.githubusercontent.com/cmd-johnson/deno-oauth2-client/master/mod.ts";
class ImplicitGrant extends OAuth2GrantBase {
constructor(client: OAuth2Client);
public getAuthorizationUri(options?: ImplicitUriOptions): URL;
public async getToken(authResponseUri: string | URL, options?: ImplicitTokenOptions): Promise<Tokens>;
}

§Extends

§
OAuth2GrantBase
[src]

§Constructors

§
new ImplicitGrant(client: OAuth2Client)
[src]

§Methods

§
getAuthorizationUri(options?: ImplicitUriOptions): URL
[src]

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

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

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.

@param authResponseUri

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.