mirror of
https://github.com/supabase/supabase.git
synced 2026-10-11 12:25:05 +03: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>
46 lines
1.1 KiB
JSON
46 lines
1.1 KiB
JSON
{
|
|
"name": "refine-user-management",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"dependencies": {
|
|
"@refinedev/cli": "^2.16.51",
|
|
"@refinedev/core": "^5.0.9",
|
|
"@refinedev/inferencer": "^7.0.0",
|
|
"@refinedev/kbar": "^2.0.1",
|
|
"@refinedev/react-hook-form": "^5.0.4",
|
|
"@refinedev/react-router": "^2.0.3",
|
|
"@refinedev/supabase": "^6.0.1",
|
|
"react": "^19.2.4",
|
|
"react-dom": "^19.2.4",
|
|
"react-hook-form": "^7.71.2",
|
|
"react-router": "^7.13.1"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^25.3.1",
|
|
"@types/react": "^19.2.14",
|
|
"@types/react-dom": "^19.2.3",
|
|
"@vitejs/plugin-react": "^5.1.4",
|
|
"typescript": "^5.9.3",
|
|
"vite": "^7.3.1"
|
|
},
|
|
"scripts": {
|
|
"dev": "refine dev",
|
|
"build": "tsc && refine build",
|
|
"preview": "refine start",
|
|
"refine": "refine"
|
|
},
|
|
"browserslist": {
|
|
"production": [
|
|
">0.2%",
|
|
"not dead",
|
|
"not op_mini all"
|
|
],
|
|
"development": [
|
|
"last 1 chrome version",
|
|
"last 1 firefox version",
|
|
"last 1 safari version"
|
|
]
|
|
}
|
|
}
|