Closed jonathan-marmelab closed 3 months ago
It was possible to access restricted pages via URL if user was logged out
Handle AuthSessionMissingError from supabase in supabaseAuthProvider.checkError
AuthSessionMissingError
supabaseAuthProvider.checkError
BEFORE: user would see the CRM layout, with an empty ContactList page (and not be redirected to the login page) AFTER: user is automatically redirected to the login page
Problem
It was possible to access restricted pages via URL if user was logged out
Solution
Handle
AuthSessionMissingError
from supabase insupabaseAuthProvider.checkError
How To Test
BEFORE: user would see the CRM layout, with an empty ContactList page (and not be redirected to the login page) AFTER: user is automatically redirected to the login page