UNPKG

@inertiapixel/nextjs-auth

Version:

A reusable Next.js authentication package supporting credentials, OTP, and OAuth login.

11 lines (10 loc) 299 B
import { AuthResponse } from '../../types'; export interface OTPPayload { email: string; otp: string; } export interface OTPLoginServerResponse { accessToken: string; message?: string; } export declare const loginWithOTP: (url: string, payload: OTPPayload) => Promise<AuthResponse>;