mirror of
https://github.com/supabase/supabase.git
synced 2026-05-07 06:27:16 +08:00
## What kind of change does this PR introduce? Documentation update ## What is the current behavior? The Refine tutorial uses `supabaseClient.auth.getSession()` in the `authProvider.check` method to verify authentication. `getSession` is deprecated and not recommended for auth verification. ## What is the new behavior? Replaced `getSession()` with `getClaims()` which reads claims from the locally cached JWT. This is the recommended approach as mentioned in the issue. ## Files changed - `apps/docs/content/guides/getting-started/tutorials/with-refine.mdx` — Updated `check` method in the authProvider code example - `examples/user-management/refine-user-management/src/providers/auth-provider.ts` — Updated the corresponding example code to match Closes #42193 --------- Co-authored-by: gorillaworkout <bayudarmawan215@gmail.com> Co-authored-by: Chris Chinchilla <chris.ward@supabase.io>