diff --git a/test/unit/auth/token-generator.spec.ts b/test/unit/auth/token-generator.spec.ts index 1cc9bd44ab..84a82dc8c4 100644 --- a/test/unit/auth/token-generator.spec.ts +++ b/test/unit/auth/token-generator.spec.ts @@ -128,10 +128,6 @@ describe('FirebaseTokenGenerator', () => { const claims = { foo: 'bar' }; const token = await tokenGenerator.createCustomToken(uid, claims); - // Check that verify doesn't throw - // Note: the types for jsonwebtoken are wrong so we have to disguise the 'null' - jwt.verify(token, undefined as any, { algorithms: ['none'] }); - // Decode and check all three segments const { header, payload, signature } = jwt.decode(token, { complete: true }) as { [key: string]: any }; expect(header).to.deep.equal({ alg: 'none', typ: 'JWT' });