finished assignment 3 - 100%

This commit is contained in:
Christopher Sanden
2026-03-16 17:42:22 +01:00
parent a4c2d55aea
commit ca915ec8e8
33 changed files with 2869 additions and 711 deletions

View File

@@ -1,5 +1,5 @@
import { AuthContext } from '@/hooks/use-auth-context'
import { hasSecureRefreshToken, supabase } from '@/libs/supabase'
import { supabase } from '@/libs/supabase'
import { PropsWithChildren, useEffect, useState } from 'react'
const buildClaims = (user?: { id: string; email?: string | null } | null) =>
@@ -26,10 +26,6 @@ export default function AuthProvider({ children }: PropsWithChildren) {
console.error('Error hydrating session:', error)
}
if (!session && await hasSecureRefreshToken()) {
console.warn('Found an encrypted Supabase refresh token backup, but fallback session recovery is not implemented.')
}
setClaims(buildClaims(session?.user))
setIsLoading(false)
}