UNPKG

@wristband/nextjs-auth

Version:

SDK for integrating your Next.js application with Wristband. Handles user authentication, session management, and token management.

18 lines (17 loc) 848 B
import { createWristbandAuth } from './auth'; import { WristbandError } from './error'; import { destroySessionWithCookies, getMutableSessionFromCookies, getPagesRouterSession, getReadOnlySessionFromCookies, getSessionFromRequest, saveSessionWithCookies, } from './session'; /** * Exports */ export { createWristbandAuth, destroySessionWithCookies, getMutableSessionFromCookies, getPagesRouterSession, getReadOnlySessionFromCookies, getSessionFromRequest, saveSessionWithCookies, WristbandError, }; /** * Re-export session types from typescript-session * * These types are needed for session configuration and custom session data definitions. */ export { SessionError, SessionErrorCode, } from '@wristband/typescript-session'; /** * Re-export from typescript-jwt */ export { createWristbandJwtValidator, } from '@wristband/typescript-jwt';