簡體   English   中英

使用 Firebase 撤銷 Android 中的 Apple 帳戶訪問權限

[英]Revoke Apple account access in Android using Firebase

我已經使用 Firebase 在 Android 中實現了蘋果帳戶身份驗證

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

我們必須在我們的應用程序中撤銷對蘋果帳戶的訪問權限。 對於iOS,授權碼可以從蘋果SDK獲取,可以通過后台服務碼撤銷訪問。

在 Android 中,我們可以得到 Firebase Auth Token ID。 我們可以使用令牌 ID 作為授權碼來撤銷訪問權限嗎? 如果沒有,我們是否有任何其他方式來撤銷 Android 客戶端應用程序的訪問權限。

據我了解,您希望使用一種或多種其他登錄方法保留用戶帳戶,並且僅取消鏈接用戶的 Apple 登錄。

這可能是您正在尋找的內容: https://firebase.google.com/docs/auth/android/account-linking#unlink-an-auth-provider-from-a-user-account

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

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM