UNPKG

@infosel-sdk/core

Version:

Core SDK for Infosel financial services platform. Provides essential infrastructure for authentication, HTTP/GraphQL communication, storage management, and error handling.

10 lines (9 loc) 384 B
import AuthToken from '../../entities/auth_token'; export default interface AuthProvider { generateToken(url: string): Promise<AuthToken>; shouldRefreshTokenOnError(error: unknown): Promise<boolean>; refreshToken(url: string, currentToken?: AuthToken): Promise<AuthToken>; setToken(token: AuthToken): void; getRealm(): string; setRealm(realm: string): void; }