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

ClientCredentialsGrant

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

Implements the OAuth 2.0 Client Credentials grant.

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

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

§Extends

§
OAuth2GrantBase
[src]

§Constructors

§
new ClientCredentialsGrant(client: OAuth2Client)
[src]

§Methods

§
buildTokenRequest(options: ClientCredentialsTokenOptions): Request private
[src]
§
getToken(options?: ClientCredentialsTokenOptions): Promise<Tokens>
[src]

Uses the clientId and clientSecret to request an access token