Fix: break out pages to dynamic route
This commit is contained in:
@@ -41,7 +41,7 @@ export const protectedProcedure = t.procedure.use(async function (opts) {
|
||||
throw sessionExpiredError()
|
||||
}
|
||||
|
||||
if (!session?.user || !opts.ctx.webToken) {
|
||||
if (!session?.token.access_token && !opts.ctx.webToken) {
|
||||
throw unauthorizedError()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user