Skip to content

Commit

Permalink
fix(session): 🐛 Remove 'removeMeta' while removing an item from storage
Browse files Browse the repository at this point in the history
Setting the `removeMeta` option is throwing a 404 as an additional removeItem call is made for the no-existent metadata item
  • Loading branch information
AbhishekKrishna123 authored Aug 28, 2024
1 parent 090320e commit bb5fb5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/server/utils/session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export async function clearUserSession(event: H3Event) {

await sessionHooks.callHookParallel('clear', session.data, event)

await useStorage('oidc').removeItem(session.id as string, { removeMeta: true })
await useStorage('oidc').removeItem(session.id as string)
await session.clear()
deleteCookie(event, sessionName)

Expand Down

0 comments on commit bb5fb5e

Please sign in to comment.