MCPcopy Create free account
hub / github.com/AlistGo/auth / authDeviceCode115

Function authDeviceCode115

app/115.go:23–39  ·  view source on GitHub ↗
(c *gin.Context)

Source from the content-addressed store, hash-verified

21}
22
23func 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
41func getStatus115(c *gin.Context) {
42 uid := c.Query("uid")

Callers

nothing calls this directly

Calls 2

randomStringFunction · 0.85
ErrorFunction · 0.85

Tested by

no test coverage detected