How to use the @foal/jwt.isInvalidTokenError function in @foal/jwt

To help you get started, we’ve selected a few @foal/jwt examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github FoalTS / foal / packages / jwks-rsa / src / get-rsa-public-key-from-jwks.spec.ts View on Github external
.catch(err => {
          if (!isInvalidTokenError(err)) {
            throw new Error('An InvalidTokenError should have been thrown.');
          }
          strictEqual(err.message, 'missing kid');
        });
    });

@foal/jwt

Authentication with JWT for FoalTS

MIT
Latest version published 2 months ago

Package Health Score

76 / 100
Full package analysis