Documentation ¶
Index ¶
- Variables
- func ComparePassword(input string, password string) error
- func CreateJWTToken(userID string) (string, error)
- func GenerateHashForPassword(input string) (string, error)
- func GenerateShortURL() string
- func GenerateUUID() string
- func GetCurrentTimestamp() int64
- func OneHourInSeconds() int64
- func OneWeekFromNow() int64
- func VerifyJWTToken(tokenString string) (string, error)
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func ComparePassword ¶
func CreateJWTToken ¶
Create a JWT token with a given user ID and expiration time
func GenerateHashForPassword ¶
func GenerateShortURL ¶
func GenerateShortURL() string
func GenerateUUID ¶
func GenerateUUID() string
func GetCurrentTimestamp ¶
func GetCurrentTimestamp() int64
func OneHourInSeconds ¶
func OneHourInSeconds() int64
func OneWeekFromNow ¶
func OneWeekFromNow() int64
func VerifyJWTToken ¶
Verify a JWT token and extract the user ID
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.