Fix up auth
This commit is contained in:
parent
8a142fcdaa
commit
f4bcba82d1
3 changed files with 5 additions and 2 deletions
3
auth.ts
3
auth.ts
|
|
@ -18,9 +18,8 @@ export const {
|
||||||
}
|
}
|
||||||
return token
|
return token
|
||||||
}
|
}
|
||||||
// // @ts-ignore
|
// @TODO
|
||||||
// authorized({ request, auth }) {
|
// authorized({ request, auth }) {
|
||||||
// if (!request.nextUrl.pathname.startsWith('/share/')) return false
|
|
||||||
// return !!auth?.user
|
// return !!auth?.user
|
||||||
// }
|
// }
|
||||||
},
|
},
|
||||||
|
|
|
||||||
0
next-auth.d.ts → index.d.ts
vendored
0
next-auth.d.ts → index.d.ts
vendored
|
|
@ -1 +1,5 @@
|
||||||
export { auth as middleware } from './auth'
|
export { auth as middleware } from './auth'
|
||||||
|
|
||||||
|
export const config = {
|
||||||
|
matcher: ['/']
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue