package
Version:
v0.0.0-...-c043ed3
Opens a new window with list of versions in this module.
Published: Nov 17, 2021
License: GPL-3.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func VerifyJWT(jwt JWT) (bool, interface{})
VerifyJWT verifies the JWT and returns payload unmarshalled to an interface{}.
The interface{} needs to then be marshalled and unmarshalled again.
func CreateJWT(payload interface{}) JWT
CreateJWT uses the payload you passed on to create a HS256-signed JWT
Source Files
¶
Click to show internal directories.
Click to hide internal directories.