Versions in this module Expand all Collapse all v0 v0.0.0 Oct 11, 2024 Changes in this version + var ErrMalformedToken = errors.New("malformed token") + var ErrTokenExpired = errors.New("token expired") + func Base62Hash(text string) string + func DecryptAES(encryptedData []byte, key []byte) ([]byte, error) + func EncryptAES(data []byte, key []byte) ([]byte, error) + func GenerateAccessAndRefreshTokens(userId string, accessTokenExpiry time.Duration, ...) (string, string) + func GenerateJWT(userId string, expiresIn time.Duration, secret string) (string, error) + func RandomString() string + func VerifyJWT(token string, secret string) (string, error)