ev-recharge-sdk
Version:
This API Product provides the option to manage charging at all public Shell Recharge locations. The end points provides control to start, stop and get status of the charging session.
25 lines (24 loc) • 917 B
TypeScript
/**
* Shell EVLib
*
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
*/
import { OAuthToken } from './models/oAuthToken';
import { ClientInterface } from './clientInterface';
export declare class ClientCredentialsAuthManager {
private _oAuthClientId;
private _oAuthClientSecret;
private _oAuthClockSkew?;
private _oAuthController;
constructor({ oAuthClientId, oAuthClientSecret, oAuthClockSkew, }: {
oAuthClientId: string;
oAuthClientSecret: string;
oAuthClockSkew?: number;
}, client: ClientInterface);
updateToken(oAuthToken?: OAuthToken): Promise<OAuthToken>;
isValid(oAuthToken: OAuthToken | undefined): oAuthToken is OAuthToken;
isExpired(oAuthToken: OAuthToken): boolean;
fetchToken(additionalParams?: Record<string, unknown>): Promise<OAuthToken>;
private getClientBasicAuth;
private setExpiry;
}