{"repo":"nearform/fast-jwt","free":true,"listed":false,"github":"https://github.com/nearform/fast-jwt","clone":"git clone https://github.com/nearform/fast-jwt.git","description":"Fast JSON Web Token implementation","language":"JavaScript","stars":436,"topics":["jwt","jwt-token","hacktoberfest"],"license":null,"category":"auth-billing-email","readme_excerpt":"fast-jwt Fast JSON Web Token implementation. Installation Just run: Usage createSigner Create a signer function by calling createSigner and providing one or more of the following options: - key : A string or a buffer containing the secret for HS algorithms or the PEM encoded private key for RS , PS , ES and EdDSA algorithms. If the key is a passphrase protected private key it must be an object (more details below). The key can also be a function accepting a Node style callback or a function returning a promise. This is the only mandatory option, which MUST NOT be provided if the token algorithm is none . - algorithm : The algorithm to use to sign the token. The default value is autodetected from the key, using RS256 for RSA private keys, HS256 for plain secrets and the corresponding ES or EdDSA algorithms for EC or Ed\\ private keys. - mutatePayload : If set to true , the original payload will be modified in place (via Object.assign ) by the signing function. This is useful if you need a raw reference to the payload after claims have been applied to it but before it has been encoded into a token. Default is false . - expiresIn : Time span (in milliseconds or text describing time) after which the token expires, added as the exp claim in the payload as defined by the section 4.1.4 of RFC 7519. This will override any existing value in the claim. Eg: 60 , \"2 days\" , \"10h\" , \"7d\" . A numeric value is interpreted as a seconds count. If you use a string be sure you provide the time u","default_branch":null,"files":null,"tree":[],"storefront":"/r/nearform","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/nearform/fast-jwt/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}