We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73f700a commit 9479d37Copy full SHA for 9479d37
packages/sdk/src/auth/token-provider.ts
@@ -67,11 +67,7 @@ export class CachedTokenProvider extends TokenProvider {
67
const existingToken = this.getCachedToken();
68
const subject = this.subject.toString();
69
70
- if (
71
- existingToken &&
72
- this.tokenValidator.canValidate(existingToken.header) &&
73
- this.tokenValidator.isSignatureValid(existingToken)
74
- ) {
+ if (existingToken && this.tokenValidator.isValid(existingToken)) {
75
return existingToken;
76
}
77
const existingDelegatePromise = this.delegateGetPromises[subject];
0 commit comments