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.

12 lines (11 loc) 285 B
// ------------------------- // In-memory token store // ------------------------- let inMemoryToken = null; export const getToken = () => inMemoryToken; export const setToken = (token) => { inMemoryToken = token; }; export const removeToken = () => { inMemoryToken = null; };