package
0.2.0-alpha.3
Repository: https://github.com/superproj/onex.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

New create a authentication instance.
WithExpired set the token expiration time (in seconds, default 2h).
WithIssuer set token issuer which is identifies the principal that issued the JWT.
WithKeyfunc set the callback function for verifying the key.
WithSigningKey set the signature key.
WithSigningMethod set signature method.
WithTokenHeader set the customer tokenHeader for client side.

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Define i18n messages.
Define i18n messages.
Define i18n messages.
Define i18n messages.
Define i18n messages.

# Structs

JWTAuth implement the authn.Authenticator interface.

# Interfaces

Storer token storage interface.

# Type aliases

Option is jwt option.