mirror of
https://github.com/DeBrosOfficial/network.git
synced 2026-01-30 16:13:04 +00:00
16 lines
445 B
Go
16 lines
445 B
Go
package ctxkeys
|
|
|
|
// ContextKey is used for storing request-scoped authentication and metadata in context
|
|
type ContextKey string
|
|
|
|
const (
|
|
// APIKey stores the API key string extracted from the request
|
|
APIKey ContextKey = "api_key"
|
|
|
|
// JWT stores the validated JWT claims from the request
|
|
JWT ContextKey = "jwt_claims"
|
|
|
|
// NamespaceOverride stores the namespace override for the request
|
|
NamespaceOverride ContextKey = "namespace_override"
|
|
)
|