import { OAuth2GrantBase } from "https://deno.land/x/oauth2_client@v0.3.0/src/grant_base.ts";
Base class for all grants.
Contains methods useful to most if not all implementations of OAuth 2.0 grants.
Constructors
new
OAuth2GrantBase(client: OAuth2Client)Methods
private
getTokenResponseError(response: Response): Promise<OAuth2ResponseError | TokenResponseError>Tries to build an AuthError from the response and defaults to AuthServerResponseError if that fails.
protected
buildRequest(): Requestprotected
parseTokenResponse(response: Response): Promise<Tokens>