Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
garronej committed Apr 23, 2023
2 parents 0fed3d3 + b7e75cc commit a99c6d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/adapter/oidc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export async function createOidc(params: {

let currentAccessToken = keycloakInstance.token;

const Oidc = id<Oidc.LoggedIn>({
const oidc = id<Oidc.LoggedIn>({
"isUserLoggedIn": true,
"getAccessToken": () => currentAccessToken,
"logout": async ({ redirectTo }) => {
Expand Down Expand Up @@ -138,7 +138,7 @@ export async function createOidc(params: {
}, msBeforeExpiration - minValiditySecond * 1000);
})();

return Oidc;
return oidc;
}

const minValiditySecond = 25;

0 comments on commit a99c6d1

Please sign in to comment.