package
0.0.0-20241003173054-2604c7f51879
Repository: https://github.com/darisorokina/go-first-sprint.git
Documentation: pkg.go.dev

# Functions

CookieMiddleware returns a middleware that ensures each request has a valid JWT in the "ClientID" cookie.
СreateCookieClientID creates a JWT token and embeds it in an HTTP cookie.

# Constants

Constant TOKENEXP is used for specifying the secret key used for signing JWT.
Constant TOKENEXP is used for specifying the token expiration time.

# Structs

Claims struct includes the registered claims from jwt package and a custom UserID field.