UNPKG

abowire

Version:

This is the official **Abowire Javascript SDK**, which makes it easy to connect to the Abowire **GraphQL API** and includes all the required dependencies you need.

14 lines (13 loc) 533 B
import { Tokens, Authentication, ClientCredentialsConfig } from '../types'; export declare class ClientCredentialsAuthentication implements Authentication { options: ClientCredentialsConfig; tokens?: Tokens; constructor(options: ClientCredentialsConfig); getAccessToken(): Promise<string | undefined>; getTokens(): Promise<Tokens | undefined>; isAuthenticated(): boolean; login(): Promise<Tokens | undefined>; getLoginUrl(): Promise<string>; renew(): Promise<void>; logout(): Promise<void>; }