@teamhanko/hanko-frontend-sdk
Version:
A package for simplifying UI integration with the Hanko API. It is meant for use in browsers only.
21 lines (20 loc) • 537 B
TypeScript
import { Client } from "./Client";
import { SessionCheckResponse } from "../Dto";
/**
* A class that handles communication with the Hanko API for the purposes
* of sessions.
*
* @constructor
* @category SDK
* @subcategory Clients
* @extends {Client}
*/
export declare class SessionClient extends Client {
/**
* Checks if the current session is still valid.
*
* @return {Promise<SessionCheckResponse>}
* @throws {TechnicalError}
*/
validate(): Promise<SessionCheckResponse>;
}