MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / adminOAuthLogout

Function adminOAuthLogout

cmd/cql-proxy/api/admin_oauth.go:102–111  ·  view source on GitHub ↗
(c *gin.Context)

Source from the content-addressed store, hash-verified

100}
101
102func adminOAuthLogout(c *gin.Context) {
103 err := model.DeleteSession(model.GetDB(c), getSession(c))
104 if err != nil {
105 _ = c.Error(err)
106 abortWithError(c, http.StatusInternalServerError, ErrLogoutFailed)
107 return
108 }
109
110 responseWithData(c, http.StatusOK, nil)
111}
112
113func adminCheck(c *gin.Context) {
114 s := getSession(c)

Callers

nothing calls this directly

Calls 6

DeleteSessionFunction · 0.92
GetDBFunction · 0.92
getSessionFunction · 0.85
abortWithErrorFunction · 0.85
responseWithDataFunction · 0.85
ErrorMethod · 0.80

Tested by

no test coverage detected