UNPKG

@inertiapixel/nextjs-auth

Version:

Authentication system for Next.js. Supports credentials and social login, JWT token management, and lifecycle hooks — designed to integrate with nodejs-auth for full-stack MERN apps.

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>;