We've recently launched support for filling the user's
displayName when signing in with Apple. You can now call the following API - no more need to update the
let credential = OAuthProvider.appleCredential(
We've also launched support for revoking a user's access and refresh tokens when deleting their user account - which is a requirement for all apps that offer account creation.
The steps for deleting a Firebase user account who has signed in with Apple are:
- Ask the user to authorize deleting their account. This is required to get an authorisation code, which Firebase needs to revoke the user's tokens.
- Call the
Auth.auth().revokeToken(withAuthorizationCode: authCodeString) to actually revoke the token
- Once that's succeeded, you can delete the Firebase user by calling
- To also delete their associated data, I recommend using the Delete User Data Firebase Extension
You can find more details in the documentation for Signing in with Apple with Firebase. As mentioned in the last issue of the newsletter, I've recorded an entire video to walk you through deleting user accounts (including token revocation), which should be published soon - so why don't you subscribe to the Firebase YouTube channel to make sure you don't miss it!