MCPcopy Index your code
hub / github.com/ZenNotes/zennotes / sessionStatusPayload

Function sessionStatusPayload

apps/server/internal/httpserver/security.go:392–398  ·  view source on GitHub ↗
(authenticated bool, cfg config.Config)

Source from the content-addressed store, hash-verified

390}
391
392func sessionStatusPayload(authenticated bool, cfg config.Config) map[string]any {
393 return map[string]any{
394 "authenticated": authenticated,
395 "authRequired": strings.TrimSpace(cfg.AuthToken) != "",
396 "supportsSessionLogin": true,
397 }
398}
399
400func (s *Server) sessionCookie(r *http.Request, token string, expiresAt time.Time) *http.Cookie {
401 cookie := &http.Cookie{

Callers 3

sessionStatusMethod · 0.85
sessionLoginMethod · 0.85
sessionLogoutMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected