supertokens-node
Version:
NodeJS driver for SuperTokens core
51 lines (50 loc) • 1.99 kB
TypeScript
// @ts-nocheck
import SuperTokensError from "../../error";
import Recipe from "./recipe";
import { RecipeInterface, APIOptions, APIInterface } from "./types";
export default class Wrapper {
static init: typeof Recipe.init;
static Error: typeof SuperTokensError;
static createOrUpdateClient(input: {
tenantId: string;
clientId?: string;
clientSecret?: string;
redirectURIs: string[];
defaultRedirectURI: string;
metadataXML: string;
allowIDPInitiatedLogin?: boolean;
enableRequestSigning?: boolean;
userContext?: Record<string, any>;
}): void;
static listClients(input: { tenantId: string; userContext?: Record<string, any> }): void;
static removeClient(input: { tenantId: string; clientId: string; userContext?: Record<string, any> }): void;
static createLoginRequest(input: {
tenantId: string;
clientId: string;
redirectURI: string;
state?: string;
acsURL: string;
userContext?: Record<string, any>;
}): void;
static verifySAMLResponse(input: {
tenantId: string;
samlResponse: string;
relayState: string | undefined;
userContext?: Record<string, any>;
}): void;
static getUserInfo(input: {
tenantId: string;
accessToken: string;
clientId: string;
userContext?: Record<string, any>;
}): void;
}
export declare let init: typeof Recipe.init;
export declare let Error: typeof SuperTokensError;
export declare let createOrUpdateClient: typeof Wrapper.createOrUpdateClient;
export declare let listClients: typeof Wrapper.listClients;
export declare let removeClient: typeof Wrapper.removeClient;
export declare let createLoginRequest: typeof Wrapper.createLoginRequest;
export declare let verifySAMLResponse: typeof Wrapper.verifySAMLResponse;
export declare let getUserInfo: typeof Wrapper.getUserInfo;
export type { RecipeInterface, APIOptions, APIInterface };