jwt

command module
v0.0.0-...-9964533 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 27, 2019 License: MIT Imports: 8 Imported by: 0

README

jwt

Build Status CodeCovWidget GoReport Widget GoDoc Widget

Command line JWT token parser written in Golang

What is this?

jwt is command line tool for parsing JSON Web Tokens (JWT)

Inspired by NodeJS implementation by @troyharvey.

Installation

Use the go command:

$ go get -u github.com/NexoMichael/jwt

Usage

$ jwt eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IlRlc3QgVG9rZW4iLCJpYXQiOjE1MTYyMzkwMjIsIm5iZiI6MTUxNjI0OTAyMiwiZXhwIjoxNTE2MjU5MDIyfQ.DQJ8SA18nhH0Zh6HaxUAsFwsa37Fp82rVJvnWJfHgwU

✻ Header
{
	"alg": "HS256",
	"typ": "JWT"
}

✻ Body
{
	"exp": 1516259022,
	"iat": 1516239022,
	"name": "Test Token",
	"nbf": 1516249022,
	"sub": "1234567890"
}
Issued at: 18 Jan 18 04:30 GMT
Not before: 18 Jan 18 07:17 GMT
Expires at: 18 Jan 18 10:03 GMT

✻ Signature
DQJ8SA18nhH0Zh6HaxUAsFwsa37Fp82rVJvnWJfHgwU

Requirements

jwt-cli package requires Go >= 1.13

Copyright (C) 2018 by Mikhail Kochegarov mikhail@kochegarov.biz.

UUID package releaed under MIT License. See LICENSE for details.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL