package
Version:
v0.0.0-...-51e27e0
Opens a new window with list of versions in this module.
Published: Jul 11, 2023
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
FromRequest reads the given http request to see if it contains a JWT.
Get takes in init values and returns a signed HS256 JWT as a string.
MapClaims represents the json data of this JWT
Verify takes in a JWT string an a corresponding HS256 secret and verifies the token and its claims are valid.
VerifyRequest is a shortcut for `Verify(FromRequest(r), secret)`
Source Files
¶
Click to show internal directories.
Click to hide internal directories.