@lobehub/chat
Version:
Lobe Chat - an open-source, high-performance chatbot framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.
27 lines (24 loc) • 592 B
text/typescript
import NextAuth from 'next-auth';
import authConfig from './auth.config';
/**
* NextAuth initialization without Database adapter
*
* @example
* ```ts
* import NextAuthEdge from '@/libs/next-auth/edge';
* const { auth } = NextAuthEdge;
* ```
*
* @note
* We currently use `jwt` strategy for session management.
* So you don't need to import `signIn` or `signOut` from
* this module, just import from `next-auth` directly.
*
* Inside react component
* @example
* ```ts
* import { signOut } from 'next-auth/react';
* signOut();
* ```
*/
export default NextAuth(authConfig);