UNPKG

@tradly/auth

Version:

Auth package for Tradly - handles authentication (email, phone, social login)

16 lines (15 loc) 738 B
/** * Sign Up Service * Handles user registration */ import { SignUpResponse, RequestOptions } from "../types"; /** * Sign up with email * Uses global config from initializeAuth */ export declare function emailSignUp(firstName: string, lastName: string, email: string, password: string, mobile?: string, dialCode?: string, countryId?: number, attributes?: Record<string, any>, options?: RequestOptions): Promise<SignUpResponse>; /** * Sign up with phone * Uses global config from initializeAuth */ export declare function phoneSignUp(firstName: string, lastName: string, mobile: string, dialCode: string, password: string, countryId?: number, attributes?: Record<string, any>, options?: RequestOptions): Promise<SignUpResponse>;