Documentation ¶
Index ¶
Constants ¶
View Source
const ( Issuer = "donezo" BearerPrefix = "Bearer " )
Variables ¶
This section is empty.
Functions ¶
func GenerateToken ¶
GenerateToken creates a signed JWT token with the given secret and expiration duration.
func ValidateToken ¶
ValidateToken parses and validates the JWT token string using the provided secret. It returns an error if the token is invalid, expired, or has an incorrect issuer.
Types ¶
Click to show internal directories.
Click to hide internal directories.