Discover Packages
github.com/pschlump/demo-server
jwtlib
package
Version:
v0.0.0-...-d7a0030
Opens a new window with list of versions in this module.
Published: Oct 18, 2017
License: MIT
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
CreateJwtToken will sign a JWT token, with auth_token as a claim inside it.
func CreateJwtToken(AuthToken string) (rv JwtToken, err error) {
SignToken Create, sign, and output a token. This is a great, simple example of
how to use this library to create and sign a token.
VerifyToken takes a jwt-token and output the auth_token from the claims. The token's
signature is verified. `authToken` is the auth_token in the claims.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.