package
0.0.0-20250322183500-934bfd50bf90
Repository: https://github.com/infomark-org/infomark.git
Documentation: pkg.go.dev

# Functions

HasHeaderToken tests if the request header has a token without verifying the correctness.
HasSessionToken tests if the request header has the http-only cookies containing session informations.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
createSessionManager starts a web session and stores the information into a http-only cookie.
NewTokenAuth configures and returns a JWT authentication instance.
func RateLimitMiddleware(prefix string, limit string, redisURL string) func(h http.Handler) http.Handler {.
RequiredValidAccessClaimsMiddleware tries to get information about the identity which issues a request by looking into the authorization header and then into the cookie.

# Structs

AccessClaims represent the claims parsed from JWT access token.
No description provided by the author
No description provided by the author
RefreshClaims represent the claims parsed from JWT refresh token.
TokenAuth implements JWT authentication flow.

# Interfaces

No description provided by the author