Documentation ¶
Overview ¶
Source code taken from: https://stackoverflow.com/a/22892986
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateJWTTokenPair ¶
func GenerateJWTTokenPair(hmacSecret []byte, sessionUuid string, d time.Duration) (string, string, error)
Generate the `access token` and `refresh token` for the secret key.
func NewRandomString ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.