# Functions
CorsConfig generates a config to use in gin cors middleware based on server configuration.
GenerateApplicationToken generates an application token.
GenerateClientToken generates a client token.
GenerateImageName generates an image name.
GenerateNotExistingToken receives a token generation func and a func to check whether the token exists, returns a unique token.
GeneratePluginToken generates a plugin token.
GetTokenID returns the tokenID.
GetUserID returns the user id which was previously registered by RegisterAuthentication.
RegisterAuthentication registers the user id, user and or token.
TryGetUserID returns the user id or nil if one is not set.
# Interfaces
The Database interface for encapsulating database access.