UNPKG

@c8y/client

Version:

Client application programming interface to access the Cumulocity IoT-Platform REST services.

17 lines 798 B
import { BearerAuth } from './BearerAuth'; import { ICredentials } from './IAuthentication'; 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"; constructor(throwIfNoTokenPresent?: boolean); updateCredentials({ token }: ICredentials): undefined; protected getToken(): string | undefined; } //# sourceMappingURL=BearerAuthFromSessionStorage.d.ts.map