package
0.0.0-20190825012407-d8a292982254
Repository: https://github.com/bestrobotics/registry.git
Documentation: pkg.go.dev
# Variables
ErrInternalError captures all unidentified error cases within various token services.
ErrKeyGenerationDisabled is returned when no keys were available to load, and the option to generate keys has been set false.
ErrKeyUnavailable signifies that at least one key is unavailable to the token service.
ErrTokenInvalid is returned for generic cases where the token is invalid for some reason.
# Structs
Claims represents the claims that are made to the system.
The Config struct contains information that should be used when generating a token.
An RSAToken is a token that provides both the token.Claims required components and the jtw.StandardClaims.
The RSATokenService provides RSA tokens and the means to verify them.