-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AuthProvider usa las sugerencias de supabase para authenticación general (no específicas de NextJS) https://supabase.com/docs/guides/auth/sessions#can-i-use-http-only-cookies-to-store-the-access-and-refresh-tokens https://supabase.com/docs/guides/auth/sessions#sign-out-and-scopes <img width="526" alt="image" src="https://github.com/JSConfCL/tickets/assets/952992/368d8294-8e6c-452b-9d71-152750be4484"> `<AuthProvider />` refresca la cookie en cada instancia que se carga (o cada que updatea la sesión mediante el event handler de `onAuthStateChange`. `WIN:` Como está en el Layout, cada ruta recibe su propia instancia de Auth, (Y asi seguimos una de las sugerencias del uso de NextJS al menos 🙏🏼 )
- Loading branch information
Showing
20 changed files
with
360 additions
and
386 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.