Documentation ¶
Index ¶
- func ComparePassword(plainPassword string, hashPassword string) error
- func GodotEnv(key string) string
- func HashPassword(password string) string
- func SetupLogger()
- func Sign(Data map[string]interface{}, SecretPublicKeyEnvName string, ...) (string, error)
- func VerifyToken(accessToken, SecretPublicKeyEnvName string) (*jwt.Token, error)
- func VerifyTokenHeader(ctx *fiber.Ctx, SecretPublicKeyEnvName string) (*jwt.Token, error)
- type AccessToken
- type Logger
- type MetaToken
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComparePassword ¶
func HashPassword ¶
func SetupLogger ¶
func SetupLogger()
func VerifyToken ¶
func VerifyTokenHeader ¶
Types ¶
type AccessToken ¶
type AccessToken struct {
Claims MetaToken
}
func DecodeToken ¶
func DecodeToken(accessToken *jwt.Token) AccessToken
Click to show internal directories.
Click to hide internal directories.