Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateToken ¶
GenerateToken creates a signed JWT for the given user ID. Reads JWT_SECRET and JWT_EXPIRY (seconds) from environment.
func GenerateTokenFromString ¶ added in v2.6.0
GenerateTokenFromString creates a signed JWT for the given user ID string. Use this for UUID or other string-based primary keys. Reads JWT_SECRET and JWT_EXPIRY (seconds) from environment.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.