Apparently, I have to create a customized Auth for Firebase — because of not with the ability to instantly modify providerData
(also called provider_data
) that is a part of the Person Report. Any recommendations or steering is appreciated.
Our iOS app makes use of Sign up with Apple, and that labored advantageous with Firebase’s built-in performance… till we would have liked to switch the app to a distinct staff in App Retailer Join. It seems that the ID and personal relay electronic mail handle that Apple offers for every consumer is exclusive to the App Retailer Join staff, not merely distinctive to the app. The result’s that when making an attempt to log in with SIWA underneath the brand new staff, Firebase’s regular auth is unable to find the consumer’s account — as a result of the ID from Apple is completely different underneath the brand new staff, and the e-mail handle can even be completely different if the consumer chosen the personal relay electronic mail handle possibility.
Firebase shops the sub
(the ID offered by Apple) because the uid
which is a part of the providerData
on the Person Report, however my understanding is that we can not modify the providerData
instantly, and so we’ll have to create a very customized Auth setup on the Firebase facet in an effort to permit SIWA customers to proceed to log in after our app is transferred to the brand new App Retailer Join staff.
Has anybody gone via this course of earlier than? If that’s the case, any suggestions or recommendations for how you can setup the customized Auth in Firebase?
I perceive the method from the Apple facet fairly effectively now… as we’re making ready to switch the app from Workforce A to Workforce B, for every consumer we’ll name Apple’s endpoint /auth/usermigrationinfo
as Workforce A to retrieve the transfer_sub
(also called the “switch identification”) which we then will to retailer someplace in Firebase. Then as Workforce B, we’ll name Apple’s endpoint /auth/usermigrationinfo
in an effort to retrieve the consumer’s new sub
and their probably new electronic mail handle… and we’ll once more wish to retailer that in Firebase.
The difficult half appears to be how you can create the customized Auth performance for Firebase.