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

ResourceOwnerPasswordCredentialsGrant

import { ResourceOwnerPasswordCredentialsGrant } from "https://raw.githubusercontent.com/cmd-johnson/deno-oauth2-client/master/mod.ts";

Implements the OAuth 2.0 resource owner password credentials grant.

See https://tools.ietf.org/html/rfc6749#section-4.3

class ResourceOwnerPasswordCredentialsGrant extends OAuth2GrantBase {
constructor(client: OAuth2Client);
private buildTokenRequest(options: ResourceOwnerPasswordCredentialsTokenOptions): Request;
public async getToken(options: ResourceOwnerPasswordCredentialsTokenOptions): Promise<Tokens>;
}

§Extends

§
OAuth2GrantBase
[src]

§Constructors

§
new ResourceOwnerPasswordCredentialsGrant(client: OAuth2Client)
[src]

§Methods

§
buildTokenRequest(options: ResourceOwnerPasswordCredentialsTokenOptions): Request private
[src]
§

Uses the username and password to request an access and optional refresh token