@c8y/client
Version:
Client application programming interface to access the Cumulocity IoT-Platform REST services.
19 lines • 884 B
TypeScript
import { BearerAuth } from './BearerAuth.js';
import { ICredentials } from './IAuthentication.js';
export declare class BearerAuthFromSessionStorage extends BearerAuth {
/**
* Key for the session storage used to retrieve the bearer token from.
*/
static readonly sessionStorageKey = "bearerAuthToken";
/**
* If the session storage key 'bearerAuthTokenKeep' is set to true, the token will be kept in session storage after it was found.
* Allows you to still refresh the page.
*/
static readonly sessionStorageKeyToKeepToken = "bearerAuthTokenKeep";
static removeEntriesFromSessionStorage(): void;
constructor(throwIfNoTokenPresent?: boolean);
updateCredentials({ token }: ICredentials): undefined;
logout(): Promise<any>;
protected getToken(): string | undefined;
}
//# sourceMappingURL=BearerAuthFromSessionStorage.d.ts.map