Documentation
¶
Index ¶
- func AddRequestLogging(next http.Handler) http.Handler
- func AddViewerToLogs(fromContext func(context.Context) any) func(http.Handler) http.Handler
- func AuthenticateWithClerk(clerkHook *clerkhooks.ClerkHook) func(http.Handler) http.Handler
- func Chain(middlewares ...func(http.Handler) http.Handler) func(http.Handler) http.Handler
- func CookieAuth(next http.Handler) http.Handler
- func EnableCORS(clientURL string) func(http.Handler) http.Handler
- func IsViewerOverrideSet(r *http.Request) bool
- func SecurityHeaders(next http.Handler) http.Handler
- func SetManualViewer(...) func(http.Handler) http.Handler
- func SkipIf(shouldSkip func(r *http.Request) bool, mw func(http.Handler) http.Handler) func(http.Handler) http.Handler
- func UseIf(shouldRun func(r *http.Request) bool, mw func(http.Handler) http.Handler) func(http.Handler) http.Handler
- func WebsocketInit(clerkhook *clerkhooks.ClerkHook) transport.WebsocketInitFunc
- func WithCustomClaims() clerkhttp.AuthorizationOption
- func WriteClerkSessionClaimsFromLocalDB(hook *clerkhooks.ClerkHook) func(http.Handler) http.Handler
- type CustomClaims
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddViewerToLogs ¶ added in v1.1.14
func AuthenticateWithClerk ¶
func IsViewerOverrideSet ¶
func SetManualViewer ¶
func WebsocketInit ¶
func WebsocketInit( clerkhook *clerkhooks.ClerkHook, ) transport.WebsocketInitFunc
func WithCustomClaims ¶
func WithCustomClaims() clerkhttp.AuthorizationOption
func WriteClerkSessionClaimsFromLocalDB ¶ added in v1.1.3
Types ¶
type CustomClaims ¶
Click to show internal directories.
Click to hide internal directories.