Universal SDK
English
English
  • README
  • Unity SDK
    • Get Started
      • Android Setup(deprecated)
      • Android Setup
        • Jitpack to Migration
      • iOS Setup
    • Integrations
    • Trouble Shooting
      • Google Login issue
      • UniversalSDK.framework Load failure when running app
      • Android Proguard ClassNotFoundException
  • console guide
    • Google Login
      • Android
      • iOS
    • Apple Login
      • iOS
      • Android
        • Redirect Server
    • Facebook Login
  • Server Side
    • Verify Google ID token
    • Verify Apple identity token
    • Verify Facebook access token
Powered by GitBook
On this page
  1. console guide
  2. Apple Login
  3. Android

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)
PreviousAndroidNextFacebook Login

Last updated 1 year ago