Universal SDK
Korean
Korean
  • README
  • Unity SDK
    • 시작하기
      • 안드로이드 설정(더 이상 사용되지 않음)
      • 안드로이드 설정
        • Jitpack 으로 마이그레이션
      • iOS 설정
    • Integrations
    • Trouble Shooting
      • 구글 로그인 이슈
      • 앱 실행시 UniversalSDK.framework Load 실패
      • 안드로이드 프로가드 ClassNotFoundException
  • console guide
    • Google Login
      • Android
      • iOS
    • Apple Login
      • Android
        • Redirect 서버
      • iOS
    • Facebook Login
  • server side
    • Google ID token 검증
    • Apple identity token 검증
    • Facebook access token 검증
Powered by GitBook
On this page
  1. console guide
  2. Apple Login
  3. Android

Redirect 서버

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)
PreviousAndroidNextiOS

Last updated 1 year ago