# Functions

CreateToken creates a new token with the given name and expiration time, specified in hours from now with the default expiration time of 2 hours for access token and 7 days for refresh token.
GetTokensFromCookie gets the access token and refresh token from the request cookie.
GetTokenStringFromRequest gets the token string from the request header.
RemoveTokensFromCookie removes the access token and refresh token from the response cookie.
SetTokensToCookie sets the access token and refresh token to the response cookie.
ValidateAccessToken validates the given access token string and gets the accessId and username.
ValidateRefreshToken validates the given refresh token string and gets the refreshId and username.

# Constants

Constants related to Cookie and HTTP headers.
Constants related to JWT.
Constants related to JWT.
Constants related to JWT.
Constants related to JWT.
Constants related to JWT.
Constants related to JWT.
Constants related to JWT.
Constants related to JWT.
This is not potential hardcoded credentials nolint:gosec.

# Structs

No description provided by the author