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

RefreshTokenGrant

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

Implements the OAuth 2.0 refresh token grant.

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

class RefreshTokenGrant extends OAuth2GrantBase {
constructor(client: OAuth2Client);
async refresh(refreshToken: string, options?: RefreshTokenOptions): Promise<Tokens>;
}

§Extends

§
OAuth2GrantBase
[src]

§Constructors

§
new RefreshTokenGrant(client: OAuth2Client)
[src]

§Methods

§
refresh(refreshToken: string, options?: RefreshTokenOptions): Promise<Tokens>
[src]

Request new tokens from the authorization server using the given refresh token.