简体   繁体   中英

Revoke Apple account access in Android using Firebase

I have implemented apple account authentication in Android by using Firebase

https://firebase.google.com/docs/auth/android/apple

We have to revoke the access for apple account in our application. For iOS, authorisation code can be fetched from apple SDK and can revoke the access by using backend service code.

In Android, we can get Firebase Auth Token ID. Can we use token ID as authorisation code to revoke the access. If not, do we have any other way to revoke the access from Android client application.

As I understand it, you want to keep the user account with one or more other sign-in methods and only unlink the user's Apple sign-in.

This might be what you are looking for: https://firebase.google.com/docs/auth/android/account-linking#unlink-an-auth-provider-from-a-user-account

FirebaseAuth
  .getInstance()
  .getCurrentUser()
  .unlink("apple.com");

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM