Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateNewApiKey ¶ added in v1.81.0
func GenerateNewApiKey() string
GenerateNewApiKey generates a 32 character API key. If the build environment is dev or stage the key will start with "dev_" or "stage_" respectively.
func GetApiKeyFromHeaders ¶ added in v1.81.0
GetApiKeyFromHeaders checks if a bearer token is passed as part of the Authorization header and returns that key
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.