MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / respondWithSessionInfo

Method respondWithSessionInfo

rest/session_api.go:30–36  ·  view source on GitHub ↗

Respond with a JSON struct containing info about the current login session

()

Source from the content-addressed store, hash-verified

28
29// Respond with a JSON struct containing info about the current login session
30func (h *handler) respondWithSessionInfo() error {
31
32 response := h.formatSessionResponse(h.user, "")
33
34 h.writeJSON(response)
35 return nil
36}
37
38// GET /_session returns info about the current user
39func (h *handler) handleSessionGET() error {

Callers 2

handleSessionGETMethod · 0.95
makeSessionMethod · 0.95

Calls 2

formatSessionResponseMethod · 0.95
writeJSONMethod · 0.95

Tested by

no test coverage detected