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

Function userAuthLogout

cmd/cql-proxy/api/user_oauth.go:369–378  ·  view source on GitHub ↗
(c *gin.Context)

Source from the content-addressed store, hash-verified

367}
368
369func userAuthLogout(c *gin.Context) {
370 err := model.DeleteSession(model.GetDB(c), getSession(c))
371 if err != nil {
372 _ = c.Error(err)
373 abortWithError(c, http.StatusInternalServerError, ErrLogoutFailed)
374 return
375 }
376
377 responseWithData(c, http.StatusOK, nil)
378}
379
380func getCurrentProjectDB(c *gin.Context) (db *gorp.DbMap, err error) {
381 project := getCurrentProject(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