added tons of features
This commit is contained in:
20
auth.config.ts
Normal file
20
auth.config.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
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
|
||||
Reference in New Issue
Block a user