(c *gin.Context)
| 21 | } |
| 22 | |
| 23 | func authDeviceCode115(c *gin.Context) { |
| 24 | client := sdk.Default() |
| 25 | codeVerifier := randomString(44) |
| 26 | appID := c.Query("app_id") |
| 27 | if appID == "" { |
| 28 | appID = appID115 |
| 29 | } |
| 30 | resp, err := client.AuthDeviceCode(c, appID, codeVerifier) |
| 31 | if err != nil { |
| 32 | Error(c, err) |
| 33 | return |
| 34 | } |
| 35 | c.JSON(200, gin.H{ |
| 36 | "code_verifier": codeVerifier, |
| 37 | "resp": resp, |
| 38 | }) |
| 39 | } |
| 40 | |
| 41 | func getStatus115(c *gin.Context) { |
| 42 | uid := c.Query("uid") |
nothing calls this directly
no test coverage detected