Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewToken ¶
NewToken returns a new, unique, hard-to-guess token consisting of alphanumeric characters only. The token's length is the greater of 64 or the length specified. i.e. This function produces tokens with a minimum length of 64 characters. The generated tokens incorporate a UUID (v4) to ensure uniqueness. This minimum token length of 64 was selected so that any given token consists of at least as many random, hard-to-guess characters is it does more deterministic characters.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.