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 997c307 commit 5f4ee7fCopy full SHA for 5f4ee7f
src/runtime/server/utils/session.ts
@@ -63,7 +63,7 @@ export async function setUserSession(event: H3Event, data: UserSession, config?:
63
})
64
}
65
else {
66
- await session.update(data)
+ await session.update(defu(data, session.data))
67
68
69
return session.data
0 commit comments