diff --git a/src/routes/(authenticated)/admin/+page.server.ts b/src/routes/(authenticated)/admin/+page.server.ts index 6ac04ec..a38b156 100644 --- a/src/routes/(authenticated)/admin/+page.server.ts +++ b/src/routes/(authenticated)/admin/+page.server.ts @@ -2,9 +2,7 @@ import { JWT_SECRET } from '$env/static/private' import { redirect } from '@sveltejs/kit' import jwt from 'jsonwebtoken' -export const load = async ({ locals: { getSession }, depends }) => { - depends('supabase:auth') - +export const load = async ({ locals: { getSession } }) => { const session = await getSession() if (!session) redirect(307, '/auth');