1.0.3 • Published 10 months ago

jwtier v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

JWTier

npm GitHub issues GitHub Commitizen friendly semantic-release: angular

A simple Node.js CLI tool to generate JWTs using HS256 algorithm.

Installation

In order to use this CLI tool you can install it globally:

## with npm
npm install -g jwtier

## pnpm
pnpm add -g jwtier

## or yarn
yarn global add jwtier

or use it with npx:

npx jwtier

Usage

Call jwtier from the command line and you will be prompted to enter the following information:

FieldDescriptionExample
secretThe secret from which the JWT will be generated. If you don't have one JWTier will generate one for you.mysecret
issuerDefines the iss JWT payload.my-company
audienceDefines the aud JWT payloadmy-app
subjectDefines the sub JWT payloadauth
expirationDefines the exp JWT payload. It can be a Unix Timestamp or a string which will be resolved as a time span1h, 2.5 weeks, 1717623978
extra payloadDefines the extra payload to be added to the JWT. It must be a valid JSON string.{"foo": "bar"}

After this JWTier will display the JWT and the secret on your command line and copy it to your clipboard; you can test it with the JWT Debugger from jwt.io!

1.0.3

10 months ago

1.0.2

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago