public void Unlink(PlayFabAuthService authService, AuthKeys authKeys)
 {
     PlayFabClientAPI.UnlinkGoogleAccount(new UnlinkGoogleAccountRequest
     {
         AuthenticationContext = authService.AuthenticationContext,
     }, resultCallback =>
     {
         authService.InvokeUnlink(AuthTypes.GooglePlayGames);
     }, errorCallback =>
     {
         authService.InvokeUnlink(AuthTypes.GooglePlayGames, errorCallback);
     });
 }
Exemplo n.º 2
0
 public void Unlink(PlayFabAuthService authService, AuthKeys authKeys)
 {
     PlayFabClientAPI.UnlinkTwitch(new UnlinkTwitchAccountRequest
     {
         AuthenticationContext = authService.AuthenticationContext,
     }, resultCallback =>
     {
         authService.InvokeUnlink(AuthTypes.Twitch);
     }, errorCallback =>
     {
         authService.InvokeUnlink(AuthTypes.Twitch, errorCallback);
     });
 }
Exemplo n.º 3
0
 public void Unlink(PlayFabAuthService authService, AuthKeys authKeys)
 {
     PlayFabClientAPI.UnlinkFacebookInstantGamesId(new UnlinkFacebookInstantGamesIdRequest
     {
         AuthenticationContext  = authService.AuthenticationContext,
         FacebookInstantGamesId = authKeys.AuthTicket
     }, resultCallback =>
     {
         authService.InvokeUnlink(AuthTypes.FacebookInstantGames);
     }, errorCallback =>
     {
         authService.InvokeUnlink(AuthTypes.FacebookInstantGames, errorCallback);
     });
 }
Exemplo n.º 4
0
 public void Unlink(PlayFabAuthService authService, AuthKeys authKeys)
 {
     PlayFabClientAPI.UnlinkOpenIdConnect(new UninkOpenIdConnectRequest
     {
         AuthenticationContext = authService.AuthenticationContext,
         ConnectionId          = authKeys.OpenIdConnectionId
     }, resultCallback =>
     {
         authService.InvokeUnlink(AuthTypes.OpenId);
     }, errorCallback =>
     {
         authService.InvokeUnlink(AuthTypes.OpenId, errorCallback);
     });
 }
 public void Unlink(PlayFabAuthService authService, AuthKeys authKeys)
 {
     PlayFabClientAPI.UnlinkWindowsHello(new UnlinkWindowsHelloAccountRequest
     {
         AuthenticationContext = authService.AuthenticationContext,
         PublicKeyHint         = authKeys.AuthTicket
     }, resultCallback =>
     {
         authService.InvokeUnlink(AuthTypes.WindowsHello);
     }, errorCallback =>
     {
         authService.InvokeUnlink(AuthTypes.WindowsHello, errorCallback);
     });
 }
Exemplo n.º 6
0
 public void Unlink(PlayFabAuthService authService, AuthKeys authKeys)
 {
     PlayFabClientAPI.UnlinkXboxAccount(new UnlinkXboxAccountRequest
     {
         AuthenticationContext = authService.AuthenticationContext,
         XboxToken             = authKeys.AuthTicket
     }, resultCallback =>
     {
         authService.InvokeUnlink(AuthTypes.XBoxLive);
     }, errorCallback =>
     {
         authService.InvokeUnlink(AuthTypes.XBoxLive, errorCallback);
     });
 }
 public void Unlink(PlayFabAuthService authService, AuthKeys authKeys)
 {
     PlayFabClientAPI.UnlinkNintendoSwitchDeviceId(new UnlinkNintendoSwitchDeviceIdRequest
     {
         AuthenticationContext  = authService.AuthenticationContext,
         NintendoSwitchDeviceId = PlayFabSettings.DeviceUniqueIdentifier
     }, resultCallback =>
     {
         authService.InvokeUnlink(AuthTypes.NintendoSwitch);
     }, errorCallback =>
     {
         authService.InvokeUnlink(AuthTypes.NintendoSwitch, errorCallback);
     });
 }
Exemplo n.º 8
0
        public void Unlink(PlayFabAuthService authService, AuthKeys authKeys)
        {
            Authenticate(authService, resultCallback =>
            {
#if UNITY_ANDROID && !UNITY_EDITOR
                PlayFabClientAPI.UnlinkAndroidDeviceID(new UnlinkAndroidDeviceIDRequest()
                {
                    AndroidDeviceId       = PlayFabSettings.DeviceUniqueIdentifier,
                    AuthenticationContext = authService.AuthenticationContext
                }, unlinkCallback =>
                {
                    authService.InvokeUnlink(AuthTypes.Silent);
                }, errorCallback =>
                {
                    authService.InvokeUnlink(AuthTypes.Silent, errorCallback);
                });
#elif UNITY_IPHONE || UNITY_IOS && !UNITY_EDITOR
                PlayFabClientAPI.UnlinkIOSDeviceID(new UnlinkIOSDeviceIDRequest()
                {
                    DeviceId = PlayFabSettings.DeviceUniqueIdentifier,
                    AuthenticationContext = authService.AuthenticationContext
                }, unlinkCallback =>
                {
                    authService.InvokeUnlink(AuthTypes.Silent);
                }, errorCallback =>
                {
                    authService.InvokeUnlink(AuthTypes.Silent, errorCallback);
                });
#else
                PlayFabClientAPI.UnlinkCustomID(new UnlinkCustomIDRequest
                {
                    CustomId = authService.GetOrCreateRememberMeId(),
                    AuthenticationContext = authService.AuthenticationContext
                }, unlinkCallback =>
                {
                    authService.InvokeUnlink(AuthTypes.Silent);
                }, errorCallback =>
                {
                    authService.InvokeUnlink(AuthTypes.Silent, errorCallback);
                });
#endif
            }, errorCallback => authService.InvokeUnlink(AuthTypes.Silent, errorCallback), authKeys);
        }