Skip to content

Commit

Permalink
fix: Fix sign out event user definition
Browse files Browse the repository at this point in the history
  • Loading branch information
SamTolmay committed Nov 8, 2023
1 parent c3f2c4f commit 3821bfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/api/src/routes/auth/events/createSignOutEvent.js
Expand Up @@ -24,7 +24,7 @@ function createSignOutEvent({ authConfig, logger, plugins }) {
});

async function signOutEvent({ session, token }) {
const user = token?.user ?? session?.user;
const user = session?.user ?? token;
logger.info({
event: 'auth_sign_out',
user: {
Expand Down

0 comments on commit 3821bfd

Please sign in to comment.