package
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: Jan 30, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
New builds a new auth struct for handling JWT tokens.
GenerateJWT creates a new JWT token.
ParseJWT gets a token string and extracts the data.
type Config struct {
PrivateKey string `koanf:"private_key"`
ExpireTime int `koanf:"expire_time"`
}
Config stores data for jwt tokens.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.