You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Changing the Apple bundle ID on an existing Supabase project causes duplicate users for the same Apple sign in.
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
Have an iOS app with a bundle ID
Set up Apple as an auth provider in Supabase with the bundle ID under the Authorized Client IDs (iOS, macOS, watchOS, tvOS bundle IDs or service IDs) input field
Sign in with Apple without hiding your email (i.e. don't use an @privaterelay.appleid.com email address)
Change the bundle ID of the iOS app
Add this new bundle ID to the Apple auth provider settings in Supabase (as in step 2)
Install the iOS app on the device
Sign in with Apple on the new app without hiding your email (as in step 3)
Expected behavior
Supabase should now have 1 user.
Actual behavior
Supabase now have 2 users. One with the raw email, and one with the @privaterelay.appleid.com email.
Screenshots
System information
Auth version: 2.150.1
PostgREST version: 11.2.2
Postgres version: 15.1.0.134
Region: eu-west-2
Additional context
The user info on the Apple-private email contains my raw email. This does not seem right at all.
The text was updated successfully, but these errors were encountered:
This is expected because of how Apple's OAuth works. The sub claim in the ID token Apple sends to Supabase Auth changes based on the bundle ID / app. This is intentional as it prevents you from tracking the same user across two different apps.
Bug report
Describe the bug
Changing the Apple bundle ID on an existing Supabase project causes duplicate users for the same Apple sign in.
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
Authorized Client IDs (iOS, macOS, watchOS, tvOS bundle IDs or service IDs)
input field@privaterelay.appleid.com
email address)Expected behavior
Supabase should now have 1 user.
Actual behavior
Supabase now have 2 users. One with the raw email, and one with the
@privaterelay.appleid.com
email.Screenshots
System information
Additional context
The user info on the Apple-private email contains my raw email. This does not seem right at all.
The text was updated successfully, but these errors were encountered: