Versions in this module Expand all Collapse all v0 v0.36.0 Aug 30, 2026 v0.35.0 Jul 16, 2026 Changes in this version + const AuthKnightDefaultBaseURL + const AuthKnightWhoEndpoint + const DefaultHTTPTimeout + const DefaultTempKeyExpiration + const TokenGamma + const TokenLength + func ApiAuthKnightCallback(w http.ResponseWriter, r *http.Request, deps Dependencies) + func ApiAuthKnightCallbackWithAuth(w http.ResponseWriter, r *http.Request, a types.AuthAuthKnightInterface) + type Dependencies struct + BaseURL string + HTTPTimeout time.Duration + Logger *slog.Logger + RedirectURL func(ctx context.Context, userID string) string + RegisterURL string + SetAuthCookie func(w http.ResponseWriter, r *http.Request, token string) + TemporaryKeyGet func(key string) (string, error) + TemporaryKeySet func(key string, value string, expiresSeconds int) error + UrlRedirectOnSuccess string + UseCookies bool + UserFindByEmail func(ctx context.Context, email string, options types.UserAuthOptions) (userID string, err error) + UserStoreAuthToken func(ctx context.Context, token, userID string, options types.UserAuthOptions) error