UNPKG

@inertiapixel/nextjs-auth

Version:

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

11 lines (10 loc) 309 B
import { AuthResponse } from '../../types'; export interface Credentials { email: string; password: string; } export interface LoginResponse { accessToken: string; message?: string; } export declare const loginWithCredentials: (url: string, credentials: Credentials) => Promise<AuthResponse>;