Force auth
This commit is contained in:
parent
1cc1beb63e
commit
c8aefcab04
5 changed files with 26 additions and 9 deletions
8
auth.ts
8
auth.ts
|
|
@ -17,11 +17,11 @@ export const {
|
|||
token.image = profile.picture
|
||||
}
|
||||
return token
|
||||
},
|
||||
// @ts-ignore
|
||||
authorized({ auth }) {
|
||||
return !!auth?.user
|
||||
}
|
||||
// @TODO
|
||||
// authorized({ request, auth }) {
|
||||
// return !!auth?.user
|
||||
// }
|
||||
},
|
||||
pages: {
|
||||
signIn: '/sign-in'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue