How to use the oidc-token-hash.generate function in oidc-token-hash

To help you get started, we’ve selected a few oidc-token-hash 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 panva / node-oidc-provider / lib / models / id_token.js View on Github external
hashes.forEach((claim) => {
            if (payload[claim]) {
              payload[claim] = tokenHash(payload[claim], alg, key.crv);
            }
          });
        }

oidc-token-hash

oidc-token-hash validates (and generates) ID Token `_hash` claims such as `at_hash` or `c_hash`

MIT
Latest version published 2 years ago

Package Health Score

70 / 100
Full package analysis

Popular oidc-token-hash functions

Similar packages