Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lego/feat/supabase auth #24

Merged
merged 11 commits into from
Apr 17, 2024
Merged

Lego/feat/supabase auth #24

merged 11 commits into from
Apr 17, 2024

Conversation

joseglego
Copy link
Member

No description provided.

@joseglego joseglego requested a review from fforres April 2, 2024 04:07
Copy link

cloudflare-workers-and-pages bot commented Apr 2, 2024

Deploying tickets with  Cloudflare Pages  Cloudflare Pages

Latest commit: d01d801
Status: ✅  Deploy successful!
Preview URL: https://0310e3c3.tickets.pages.dev
Branch Preview URL: https://lego-feat-supabase-auth.tickets.pages.dev

View logs

Copy link

socket-security bot commented Apr 2, 2024

fforres
fforres previously approved these changes Apr 2, 2024
redirect("/");
}

return (
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pense q ibamos a redirigir a auth.jschile.org 🤔
O eso pa después?

@fforres fforres force-pushed the lego/feat/supabase-auth branch 2 times, most recently from a16fca7 to 521e9be Compare April 2, 2024 14:43
fforres
fforres previously approved these changes Apr 7, 2024
@joseglego joseglego force-pushed the lego/feat/supabase-auth branch from 521e9be to b752bb0 Compare April 9, 2024 05:57
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
🙏🏼 )
@fforres fforres merged commit 8ff3c6d into main Apr 17, 2024
4 checks passed
@fforres fforres deleted the lego/feat/supabase-auth branch April 17, 2024 04:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants