Redirect Server

Only Android

Go Example:

func AppleLoginRedirect(c *gin.Context) {
	if c.Request.Method == "POST" {
		strBody, err := io.ReadAll(c.Request.Body)
		if err != nil {
			log.Fatal(err)
		}
		log.Println(string(strBody))

		c.Redirect(http.StatusFound, "coolish://callback?"+string(strBody))
	}
}

//router
r := gin.New()
r.Any("/applelogin/redirect", AppleLoginRedirect)

Last updated