fix untrustedHost authjs issue
https://authjs.dev/reference/core/errors#untrustedhost
This commit is contained in:
@@ -38,6 +38,7 @@ const config = {
|
|||||||
signIn: "/signin",
|
signIn: "/signin",
|
||||||
signOut: "/signout",
|
signOut: "/signout",
|
||||||
},
|
},
|
||||||
|
trustHost: true,
|
||||||
// callbacks: {
|
// callbacks: {
|
||||||
// authorized({ auth, request: { nextUrl } }) {
|
// authorized({ auth, request: { nextUrl } }) {
|
||||||
// const isLoggedIn = !!auth?.user;
|
// const isLoggedIn = !!auth?.user;
|
||||||
|
|||||||
Reference in New Issue
Block a user