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