@tradly/auth
Version:
Auth package for Tradly - handles authentication (email, phone, social login)
25 lines (24 loc) • 656 B
TypeScript
/**
* Verification Service
* Handles OTP verification and resend
*/
import { VerifyResponse, ResendOTPParams, RequestOptions } from "../types";
/**
* Verify user with OTP
* Uses global config from initializeAuth
*/
export declare function verifyUser(verifyId: string, code: string, options?: RequestOptions): Promise<VerifyResponse>;
/**
* Resend OTP
* Uses global config from initializeAuth
*/
export declare function resendOTP(userData: ResendOTPParams["user"], options?: RequestOptions): Promise<{
status: boolean;
data: {
verify_id: string;
} | null;
error?: {
code: number;
message: string;
};
}>;