package
0.6.6
Repository: https://github.com/cygy/ginamite.git
Documentation: pkg.go.dev

# Functions

GetAuthTokenID : returns the auth token ID.
GetLocale : returns the locale bound to the request.
GetParsedToken : returns the JWT token.
GetRequestLocale : returns the context locale.
GetSignedToken : returns the signed token.
GetUser : returns the user struct.
GetUserID : returns the user ID.
GetUserLocale : returns the user locale.
InjectLocale saves the current locales to the context.
ParseAuthToken : parses and saves the authenticated user to the context.
RefreshAuthToken : refreshes the auth token with the latest properties of the user.
VerifyAuthToken : checks the auth token is valid and not expired/revoked.
VerifyLatestVersionOfTermsAcceptedByUser : checks and saves the authenticated user to the context.

# Constants

LocaleParameterName localization parameter name.

# Type aliases

GetLatestVersionOfTermsAcceptedByUserFunc : returns the latest version of the terms accepted by the user.
GetUserAndLocaleFromAuthTokenFunc : returns a struct represnting the user and its loale from an auth token.
IsAuthTokenValidFunc : returns trus if the auth token is still valid and not expired or revoked.