← back to Freddy
lib/auth.ts
11 lines
import { createAuth } from '@dw/nextjs-admin-login';
export const auth = createAuth({ cookieName: 'freddy-auth' });
export const { COOKIE_NAME: AUTH_COOKIE_NAME, createSession, verifyAuth,
buildAuthCookie, buildLogoutCookie, hashPassword,
// 2026-05-06 (tick 47): re-export v0.2.0 org-scoped helpers.
// Backward compatible — accepts both v1 (3-part) and v2
// (4-part) tokens. Adopt at consumer-route's discretion.
createSessionWithOrg, verifyAuthWithOrg } = auth;
export type { AuthSession } from '@dw/nextjs-admin-login';