Skip to content

Commit 7d8e105

Browse files
docs
1 parent 42e795d commit 7d8e105

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/start/framework/react/guide/authentication.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export const logoutFn = createServerFn({ method: 'POST' }).handler(async () => {
7878
export const getCurrentUserFn = createServerFn({ method: 'GET' }).handler(
7979
async () => {
8080
const session = await useAppSession()
81-
const userId = session.userId
81+
const userId = session.data.userId
8282

8383
if (!userId) {
8484
return null

0 commit comments

Comments
 (0)