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 81814f1 commit 3b7625dCopy full SHA for 3b7625d
spec/index.spec.js
@@ -673,8 +673,10 @@ describe('server', () => {
673
exp: Date.now(),
674
sub: 'the_user_id',
675
};
676
- const fakeDecodedToken = { header: { kid: '123', alg: 'RS256' } };
+ const fakeDecodedToken = { kid: '123', alg: 'RS256' };
677
+ const fakeSigningKey = { kid: '123', rsaPublicKey: 'the_rsa_public_key' };
678
spyOn(authUtils, 'getHeaderFromToken').and.callFake(() => fakeDecodedToken);
679
+ spyOn(authUtils, 'getSigningKey').and.resolveTo(fakeSigningKey);
680
spyOn(jwt, 'verify').and.callFake(() => fakeClaim);
681
const user = new Parse.User();
682
user
0 commit comments