class ClientCredentialsGrant
extends OAuth2GrantBase
import { ClientCredentialsGrant } from "https://deno.land/x/oauth2_client@v1.0.2/src/client_credentials_grant.ts";
Implements the OAuth 2.0 Client Credentials grant.
Constructors
new
ClientCredentialsGrant(client: OAuth2Client)Methods
private
buildTokenRequest(options: ClientCredentialsTokenOptions): RequestgetToken(options?: ClientCredentialsTokenOptions): Promise<Tokens>
Uses the clientId and clientSecret to request an access token