Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Issuer = "Distributed, Blockchain and Business Solutions LLC"
Issuer is the value used as a JWT Claim issuer.
View Source
var TokenEncodeString = []byte("dfgr45uty53jyjerghejhgjeaNRghehy5")
TokenEncodeString is the byte string used for encoding/decoding JWT tokens. It's recommended to change this value for every use of the package
Functions ¶
func CreateToken ¶
CreateToken will create new JWT token with the provided data
func ParseToken ¶
ParseToken parses a JWT token and returns the custom data of the token
Types ¶
type Claims ¶
type Claims struct { Data map[string]interface{} jwtlib.StandardClaims }
Claims contains the JWT StandardClaims and a data map for custom data
Click to show internal directories.
Click to hide internal directories.