UNPKG

@nerdlat/auth

Version:

Authentication library similar to Clerk for React and Express applications

21 lines 913 B
import type { AuthConfig } from '../types'; declare class AuthAPI { private baseUrl; private apiPath; constructor(config?: AuthConfig); private getUrl; getMe(): Promise<any>; login(email: string, password: string): Promise<any>; signup(email: string, password: string): Promise<any>; logout(): Promise<void>; resetPassword(email: string, newPassword: string): Promise<void>; } export declare const authAPI: AuthAPI; export declare const getMe: () => Promise<any>; export declare const login: (email: string, password: string) => Promise<any>; export declare const signup: (email: string, password: string) => Promise<any>; export declare const logout: () => Promise<void>; export declare const resetPassword: (email: string, newPassword: string) => Promise<void>; export declare function configureAuth(config: AuthConfig): void; export {}; //# sourceMappingURL=authApi.d.ts.map