Skip to content
isaacweinPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

7 Commits

Folders and files

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

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages