Skip to content

Commit

Permalink
Merge branch 'master' into api-unit-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
benmartin-coforma committed Feb 12, 2025
2 parents 8fea79a + 195e07b commit 05c1405
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions services/app-api/libs/authorization.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ export async function getUserDetailsFromEvent(event) {
await verifyEventSignature(event);
const apiKey = event?.headers?.["x-api-key"];

// TODO, it seems that jwt_decode and verifier.verify may return the same object?
// Maybe we can remove the jwt_decode dependency.
// TODO, it seems that jwtDecode and verifier.verify may return the same object?
// Maybe we can remove the jwtDecode dependency.

const token = jwtDecode(apiKey);
const role = mapMembershipToRole(token["custom:ismemberof"]);
Expand Down

0 comments on commit 05c1405

Please sign in to comment.