@querc/squidex-client
Version:
NodeJS client for the [Squidex](https://squidex.io/) CMS
20 lines (19 loc) • 579 B
TypeScript
import { SquidexClientConfiguration } from '../configuration';
import { HttpClient } from '../http';
/**
* Handles authentication for Squidex requests
*/
export declare class AuthenticationManager {
private readonly config;
private readonly httpClient;
private accessToken;
private accessTokenExpiresOn;
constructor(config: SquidexClientConfiguration, httpClient: HttpClient);
/**
* Authenticate with the Squidex server
*
* Resolves with the access token
*/
authenticate(): Promise<string>;
private requiresAuthentication;
}