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

Function userOAuthAPICallback

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

Source from the content-addressed store, hash-verified

102}
103
104func userOAuthAPICallback(c *gin.Context) {
105 res, status, err := handleUserOAuthCallback(c)
106 if err != nil {
107 if status == 0 {
108 status = http.StatusInternalServerError
109 }
110
111 // response using json
112 abortWithError(c, status, err)
113 } else {
114 if status == 0 {
115 status = http.StatusOK
116 }
117
118 responseWithData(c, status, res)
119 }
120}
121
122func handleUserOAuthCallback(c *gin.Context) (res gin.H, status int, err error) {
123 r := struct {

Callers

nothing calls this directly

Calls 3

handleUserOAuthCallbackFunction · 0.85
abortWithErrorFunction · 0.85
responseWithDataFunction · 0.85

Tested by

no test coverage detected