MCPcopy Create free account
hub / github.com/PostHog/duckgres / normalizeNextPath

Function normalizeNextPath

controlplane/admin/dashboard.go:155–160  ·  view source on GitHub ↗
(next string)

Source from the content-addressed store, hash-verified

153 }
154}
155
156func requestAdminToken(c *gin.Context) string {
157 // Primary: X-Duckgres-Internal-Secret header (service-to-service)
158 if secret := c.GetHeader("X-Duckgres-Internal-Secret"); secret != "" {
159 return secret
160 }
161 // Fallback: cookie (dashboard UI)
162 if cookie, err := c.Cookie(adminTokenCookieName); err == nil {
163 return cookie

Callers 3

RegisterLoginFunction · 0.85
loginHandlerFunction · 0.85
renderLoginPageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected