@okta-dfuhriman/okta-auth-js
Version:
The Okta Auth SDK
10 lines (9 loc) • 487 B
TypeScript
import { SessionObject } from './types';
declare function sessionExists(sdk: any): any;
declare function getSession(sdk: any): Promise<Omit<SessionObject, "_links"> | {
status: string;
}>;
declare function closeSession(sdk: any): Promise<any>;
declare function refreshSession(sdk: any): Promise<any>;
declare function setCookieAndRedirect(sdk: any, sessionToken: any, redirectUrl: any): void;
export { sessionExists, getSession, closeSession, refreshSession, setCookieAndRedirect };