package
0.0.0-20160319114119-03c876fb6d3d
Repository: https://github.com/artemkulyabin/cryptostack.git
Documentation: pkg.go.dev
# Functions
Decode JWT specific base64url encoding with padding stripped.
Encode JWT specific base64url encoding with padding stripped.
Get a signing method from an "alg" string.
Create a new Token.
Parse, validate, and return a token.
Register the "alg" name and a factory function for signing method.
# Constants
Exp validation failed.
Token is malformed.
NBF validation failed.
Signature validation failed.
Token could not be verified because of signing problems.
# Variables
Error constants.
Error constants.
Error constants.
TimeFunc provides the current time when parsing token to validate "exp" claim (expiration time).
# Structs
No description provided by the author
A JWT Token.
The error from Parse if token is not valid.
# Interfaces
Implement SigningMethod to add new methods for signing or verifying tokens.
# Type aliases
Parse methods use this callback function to supply the key for verification.