npm.io
1.0.1 • Published 7 years ago

token-hash

Licence
Apache-2.0
Version
1.0.1
Deps
1
Size
9 kB
Vulns
0
Weekly
0
Stars
4

Token Hash

NPM version NPM downloads Build status Test coverage

Generate base64url encoding from the left-most half of the hash of a token. -- OpenID Connect

Installation

npm install token-hash --save

Usage

import { tokenHash } from "token-hash";

tokenHash("RS256", "aabbcc"); //=> "pbQy7gMHvn-iOqAEYfVO7g"

License

Apache 2.0