supertokens-node
    Preparing search index...
    type APIInterface = {
        generateEmailVerifyTokenPOST:
            | undefined
            | (
                (
                    input: {
                        options: APIOptions;
                        session: SessionContainer;
                        userContext: UserContext;
                    },
                ) => Promise<
                    | { status: "OK" }
                    | {
                        newSession?: SessionContainer;
                        status: "EMAIL_ALREADY_VERIFIED_ERROR";
                    }
                    | GeneralErrorResponse,
                >
            );
        isEmailVerifiedGET: | undefined
        | (
            (
                input: {
                    options: APIOptions;
                    session: SessionContainer;
                    userContext: UserContext;
                },
            ) => Promise<
                | { isVerified: boolean; newSession?: SessionContainer; status: "OK" }
                | GeneralErrorResponse,
            >
        );
        verifyEmailPOST:
            | undefined
            | (
                (
                    input: {
                        options: APIOptions;
                        session: SessionContainer | undefined;
                        tenantId: string;
                        token: string;
                        userContext: UserContext;
                    },
                ) => Promise<
                    | {
                        newSession?: SessionContainer;
                        status: "OK";
                        user: UserEmailInfo;
                    }
                    | { status: "EMAIL_VERIFICATION_INVALID_TOKEN_ERROR" }
                    | GeneralErrorResponse,
                >
            );
    }
    Index

    Properties

    generateEmailVerifyTokenPOST:
        | undefined
        | (
            (
                input: {
                    options: APIOptions;
                    session: SessionContainer;
                    userContext: UserContext;
                },
            ) => Promise<
                | { status: "OK" }
                | {
                    newSession?: SessionContainer;
                    status: "EMAIL_ALREADY_VERIFIED_ERROR";
                }
                | GeneralErrorResponse,
            >
        )
    isEmailVerifiedGET:
        | undefined
        | (
            (
                input: {
                    options: APIOptions;
                    session: SessionContainer;
                    userContext: UserContext;
                },
            ) => Promise<
                | { isVerified: boolean; newSession?: SessionContainer; status: "OK" }
                | GeneralErrorResponse,
            >
        )
    verifyEmailPOST:
        | undefined
        | (
            (
                input: {
                    options: APIOptions;
                    session: SessionContainer | undefined;
                    tenantId: string;
                    token: string;
                    userContext: UserContext;
                },
            ) => Promise<
                | { newSession?: SessionContainer; status: "OK"; user: UserEmailInfo }
                | { status: "EMAIL_VERIFICATION_INVALID_TOKEN_ERROR" }
                | GeneralErrorResponse,
            >
        )