Skip to content

Commit

Permalink
fix (Lint): Fix lint errors after rebase.
Browse files Browse the repository at this point in the history
  • Loading branch information
jafin authored and guillaume-chervet committed Jul 17, 2024
1 parent f6cf194 commit a082b20
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions packages/oidc-client-service-worker/src/OidcServiceWorker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ const handleMessage = async (event: ExtendableMessageEvent) => {
demonstratingProofOfPossessionJwkJson: null,
demonstratingProofOfPossessionConfiguration: null,
demonstratingProofOfPossessionOnlyWhenDpopHeaderPresent: false,
allowMultiTabLogin: allowMultiTabLogin ?? false
allowMultiTabLogin: allowMultiTabLogin ?? false,
};
currentDatabase = database[configurationName];

Expand Down Expand Up @@ -500,7 +500,7 @@ const handleMessage = async (event: ExtendableMessageEvent) => {
return;
}
case 'getNonce': {
const keyNonce = TOKEN.NONCE_TOKEN + '_' + configurationName + '_' + tabId
const keyNonce = TOKEN.NONCE_TOKEN + '_' + configurationName + '_' + tabId;
const nonce = currentDatabase.nonce ? keyNonce : null;
port.postMessage({ configurationName, nonce });
return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ describe('domains', () => {
demonstratingProofOfPossessionJwkJson: null,
demonstratingProofOfPossessionConfiguration: null,
demonstratingProofOfPossessionOnlyWhenDpopHeaderPresent: false,
allowMultiTabLogin: true
allowMultiTabLogin: true,
},
};
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ class OidcConfigBuilder {
demonstratingProofOfPossessionJwkJson: null,
demonstratingProofOfPossessionConfiguration: null,
demonstratingProofOfPossessionOnlyWhenDpopHeaderPresent: false,
allowMultiTabLogin: true
allowMultiTabLogin: true,
};

public withTestingDefault(): OidcConfigBuilder {
Expand Down
4 changes: 2 additions & 2 deletions packages/oidc-client/src/initWorker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export const initWorkerAsync = async(configuration, configurationName) => {
const newTabId = globalThis.crypto.randomUUID();
sessionStorage.setItem(`oidc.tabId.${configurationName}`, newTabId);
return newTabId;
}
};

const serviceWorkerRelativeUrl = configuration.service_worker_relative_url;
if (typeof window === 'undefined' || typeof navigator === 'undefined' || !navigator.serviceWorker || !serviceWorkerRelativeUrl) {
Expand Down Expand Up @@ -116,7 +116,7 @@ export const initWorkerAsync = async(configuration, configurationName) => {
},
},
configurationName,
tabId: getTabId()
tabId: getTabId(),
});

// @ts-ignore
Expand Down

0 comments on commit a082b20

Please sign in to comment.