mirror of https://github.com/buster-so/buster.git
Added additional load in route
This commit is contained in:
parent
16b0c275e5
commit
fbe88c7c96
|
@ -14,6 +14,7 @@ export const Route = createFileRoute('/app')({
|
|||
context: ({ context }) => ({ ...context, getAppLayout }),
|
||||
beforeLoad: async () => {
|
||||
try {
|
||||
console.log('app route beforeLoad', typeof window !== 'undefined', import.meta.env.SSR);
|
||||
const supabaseSession = await getSupabaseSession();
|
||||
const { isExpired, accessToken = '' } = supabaseSession;
|
||||
if (isExpired || !accessToken) {
|
||||
|
|
Loading…
Reference in New Issue