We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42e795d commit 7d8e105Copy full SHA for 7d8e105
docs/start/framework/react/guide/authentication.md
@@ -78,7 +78,7 @@ export const logoutFn = createServerFn({ method: 'POST' }).handler(async () => {
78
export const getCurrentUserFn = createServerFn({ method: 'GET' }).handler(
79
async () => {
80
const session = await useAppSession()
81
- const userId = session.userId
+ const userId = session.data.userId
82
83
if (!userId) {
84
return null
0 commit comments