Tweak auth
This commit is contained in:
parent
615e8e6384
commit
3bd1232162
1 changed files with 5 additions and 5 deletions
10
auth.ts
10
auth.ts
|
|
@ -17,12 +17,12 @@ export const {
|
|||
token.image = profile.picture
|
||||
}
|
||||
return token
|
||||
},
|
||||
// @ts-ignore
|
||||
authorized({ request, auth }) {
|
||||
if (!request.nextUrl.pathname.startsWith('/share/')) return true
|
||||
return !!auth?.user
|
||||
}
|
||||
// @ts-ignore
|
||||
// authorized({ request, auth }) {
|
||||
// if (!request.nextUrl.pathname.startsWith('/share/')) return true
|
||||
// return !!auth?.user
|
||||
// }
|
||||
},
|
||||
pages: {
|
||||
signIn: '/sign-in'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue