Skip to content

Commit

Permalink
fix(oidc-service-worker): remove sw unecessary log
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaume-chervet committed Feb 19, 2024
1 parent 3a14579 commit 4a5887f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions packages/oidc-client-service-worker/src/OidcServiceWorker.ts
Expand Up @@ -347,7 +347,6 @@ const handleMessage = (event: ExtendableMessageEvent) => {
trustedDomains[configurationName] = [];
}
}
console.log('[OidcServiceWorker] handleMessage', data.type);
switch (data.type) {
case 'clear':
currentDatabase.tokens = null;
Expand Down Expand Up @@ -488,8 +487,6 @@ const handleMessage = (event: ExtendableMessageEvent) => {
}
default: {
return;
// currentDatabase.items = { ...data.data };
// port.postMessage({ configurationName });
}
}
};
Expand Down
2 changes: 1 addition & 1 deletion packages/oidc-client/src/initWorker.ts
Expand Up @@ -173,7 +173,7 @@ export const initWorkerAsync = async(configuration, configurationName) => {

const setDemonstratingProofOfPossessionJwkAsync = async (demonstratingProofOfPossessionJwk:JsonWebKey) => {
const demonstratingProofOfPossessionJwkJson = JSON.stringify(demonstratingProofOfPossessionJwk);
sendMessageAsync(registration)({ type: 'setDemonstratingProofOfPossessionJwk', data: { demonstratingProofOfPossessionJwkJson }, configurationName });
await sendMessageAsync(registration)({ type: 'setDemonstratingProofOfPossessionJwk', data: { demonstratingProofOfPossessionJwkJson }, configurationName });
};

const getDemonstratingProofOfPossessionJwkAsync = async () => {
Expand Down

0 comments on commit 4a5887f

Please sign in to comment.