Skip to content

Commit

Permalink
fix: signout works as expected (#665)
Browse files Browse the repository at this point in the history
Closes #662
  • Loading branch information
andrew-codes authored Dec 9, 2024
2 parents ecc60e2 + 8e060c2 commit b4e0197
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apps/playnite-web/src/queryHooks/signOut.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ const useSignOut = () =>
update: (cache, mutationResult) => {
cache.updateQuery({ query: Me }, (data) => ({
...data,
me: {},
me: {
username: null,
isAuthenticated: false,
},
}))
},
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export const signOut: NonNullable<MutationResolvers['signOut']> = async (
}

_ctx.request.cookieStore?.delete('authorization')
claim.isAuthenticated = false

return claim
}

0 comments on commit b4e0197

Please sign in to comment.