Skip to main content

API

This section provides detailed information about the API exposed by the @celerofinancas/oauth library.

Interfaces

TokenResponse

export interface TokenResponse {
access_token: string;
expires_in: number;
id_token: string;
refresh_expires_in: number;
refresh_token: string;
scope: string;
session_state: string;
token_type: string;
}

LogoutOptions

export interface LogoutOptions {
popup?: boolean;
redirectUrl?: string;
}

Classes

OAuthStorage

export abstract class OAuthStorage {
abstract getItem: (key: string) => string | null;
abstract removeItem: (key: string) => void;
abstract setItem: (key: string, data: string) => void;
}