Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/oauth2_client/src/grant_base.ts>OAuth2GrantBase

Minimalistic OAuth 2.0 client for Deno.
Go to Latest
class OAuth2GrantBase
Abstract
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

Tries to build an AuthError from the response and defaults to AuthServerResponseError if that fails.

protected
buildRequest(
baseUrl: string | URL,
options: RequestOptions,
overrideOptions?: RequestOptions,
): Request
protected
parseTokenResponse(response: Response): Promise<Tokens>
protected
toUrl(url: string | URL): URL