UNPKG

supertokens-node

Version:
14 lines (13 loc) 992 B
import Recipe from "./recipe"; import { User } from "./types"; export declare function signUp(recipeInstance: Recipe, email: string, password: string): Promise<User>; export declare function signIn(recipeInstance: Recipe, email: string, password: string): Promise<User>; export declare function getUserById(recipeInstance: Recipe, userId: string): Promise<User | undefined>; export declare function getUserByEmail(recipeInstance: Recipe, email: string): Promise<User | undefined>; export declare function createResetPasswordToken(recipeInstance: Recipe, userId: string): Promise<string>; export declare function resetPasswordUsingToken(recipeInstance: Recipe, token: string, newPassword: string): Promise<void>; export declare function getUsers(recipeInstance: Recipe, timeJoinedOrder: "ASC" | "DESC", limit?: number, paginationToken?: string): Promise<{ users: User[]; nextPaginationToken?: string; }>; export declare function getUsersCount(recipeInstance: Recipe): Promise<number>;