Skip to content

hashamali/gjwt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gjwt

godoc tests sec go-report license

Handles authentication using JWTs.

Types

  • JWTAuth: Does JWT authentication. Contains the secret key used to sign JWTs as well as the expiration time.

Methods

  • JWTAuth.Create: Creates a JWT token with the provided metadata.
  • JWTAuth.Extract: Extracts metadata from the given JWT token.

Testing

make test