UNPKG

@delewis13/appauth

Version:

A general purpose OAuth client. Vendored awaiting PR merge

32 lines (31 loc) 843 B
import { StringMap } from './types'; /** * Supported token types */ export declare type TokenTypeHint = 'refresh_token' | 'access_token'; /** * Represents the Token Request as JSON. */ export interface RevokeTokenRequestJson { token: string; token_type_hint?: TokenTypeHint; client_id?: string; client_secret?: string; } /** * Represents a revoke token request. * For more information look at: * https://tools.ietf.org/html/rfc7009#section-2.1 */ export declare class RevokeTokenRequest { token: string; tokenTypeHint: TokenTypeHint | undefined; clientId: string | undefined; clientSecret: string | undefined; constructor(request: RevokeTokenRequestJson); /** * Serializes a TokenRequest to a JavaScript object. */ toJson(): RevokeTokenRequestJson; toStringMap(): StringMap; }