Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateToken ¶
GenerateToken creates a JWT with email and expiration time in the payload
func HashPassword ¶
HashPassword takes a string in parameter and returns the same string hashed with sha512
Types ¶
type Claims ¶
type Claims struct { Email string jwt.StandardClaims }
func DecodeToken ¶
DecodeToken decode and validates a token
Click to show internal directories.
Click to hide internal directories.