Skip to content
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.

Commit

Permalink
Return additionalContext appropriately from LoginAppUser mutation
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinsina committed Jul 30, 2024
1 parent c15f4be commit 09693d8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/marko-web-identity-x/routes/authenticate.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const loginAppUser = gql`
...ActiveUserFragment
}
loginSource
additionalEventData
additionalContext
}
}
Expand Down Expand Up @@ -53,7 +53,8 @@ module.exports = asyncRoute(async (req, res) => {
applicationId: identityX.config.getAppId(),
user,
loginSource,
additionalEventData: { ...additionalEventData, ...getAsObject(data, 'loginAppUser.additionalEventData') },
additionalContext: getAsObject(data, 'loginAppUser.additionalContext'),
additionalEventData,
entity,
});
});

0 comments on commit 09693d8

Please sign in to comment.