Skip to content

isaacwein/jwt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jwt demo

just a demo project how to use jwt sign and parse its based out of the library golang-jwt v4

Demos

Setup

// this is enough one time in the hole project 
JWT, err := jwt.New()
if err != nil {
    // handle error
}

Sign Token

token, err := JWT.Sign(123456)
if err != nil {
	// handle error
}

Parse Token

claims, err := JWT.Parse(token)
if err != nil {
    // handle error	
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages