21 lines
383 B
TypeScript
21 lines
383 B
TypeScript
import type {NextAuthConfig} from 'next-auth'
|
|
|
|
//import 'server-only'
|
|
|
|
export default {
|
|
// pages: {
|
|
// signIn: '/auth/login',
|
|
// //signOut: '/auth/register',
|
|
// newUser: '/auth/register',
|
|
// error: '/auth/error',
|
|
// verifyRequest: '/auth/verify-request'
|
|
// },
|
|
|
|
callbacks: {
|
|
authorized({auth}) {
|
|
return !!auth?.user
|
|
}
|
|
},
|
|
providers: []
|
|
} satisfies NextAuthConfig
|