Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/navikt/team-catalog into mi…
Browse files Browse the repository at this point in the history
…grate_backend_gcp
  • Loading branch information
eziztm committed Sep 5, 2023
2 parents e4c8171 + f2939b7 commit ccad215
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions apps/frackend/src/sessionCache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,8 @@ export function setOboTokenForRequest(
return;
}

const cachedValue = sessionCache.get<SessionCacheValue>(hashedAuthHeader);

if (!cachedValue) {
return;
}
const cachedValue =
sessionCache.get<SessionCacheValue>(hashedAuthHeader) ?? {};

cachedValue[scope] = oboToken;

Expand Down

0 comments on commit ccad215

Please sign in to comment.