Login de usuarios #147

Open
opened 2026-03-02 20:16:05 +00:00 by AlexRG · 2 comments
Owner
https://supabase.com/docs/reference/javascript/auth-onauthstatechange
Author
Owner

Al parecer ya se puede obtener sin el relajo del localstorage

// Get user claims from verified JWT
const { data, error } = await supabase.auth.getClaims()
data.claims // Ya tendrá todo lo que el hook le integró
Al parecer ya se puede obtener sin el relajo del localstorage ```js // Get user claims from verified JWT const { data, error } = await supabase.auth.getClaims() data.claims // Ya tendrá todo lo que el hook le integró ```
Author
Owner

Hook para agregar claims personalizados como el ROL o la Facultad

Solo para el front-end
https://supabase.com/docs/guides/database/postgres/custom-claims-and-role-based-access-control-rbac

# Hook para agregar claims personalizados como el ROL o la Facultad _Solo para el front-end_ https://supabase.com/docs/guides/database/postgres/custom-claims-and-role-based-access-control-rbac
Guillermo.Arrieta was assigned by AlexRG 2026-03-02 20:22:32 +00:00
AlexRG added the feature label 2026-03-02 20:22:38 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Reference: Guillermo.Arrieta/acad-ia-2#147