package
0.4.0
Repository: https://github.com/reugn/auth-server.git
Documentation: pkg.go.dev

# Functions

NewJWTGenerator returns a new instance of JWTGenerator.
NewJWTValidator returns a new JWTValidator.
NewKeys returns a new instance of Keys.
NewKeysFromFile creates and returns a new instance of Keys from the files containing the secrets information.
NewKeysFromPem creates and returns a new instance of Keys from the pem byte arrays.

# Constants

BasicToken is a string where credentials is the base64 encoding of id and password joined by a single colon :.
BearerToken is an opaque string, not intended to have any meaning to clients using it.

# Structs

AccessToken represents an access token.
Claims is the custom JWT claims container.
JWTGenerator generates an AccessToken.
JWTValidator validates and authorizes an AccessToken.
Keys represents a container for the private and public keys.

# Type aliases

TokenType represents a token type.