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
Currently the file FIRAuthProvider.m contains auth provider ids, as constants.
My request is to replace these with an enum, so it'll be easier to make switch-case block when needed.
It just makes a lot more sense than creating my own enum by manually copying the values from the file or make some non-convenience long and unnecessary else-if.
P.S. You may add as well case for AppleProviderID as "apple.com".
Usage case example
Generate the correct credential for reauthenticate(with: credential) based on Auth.auth().currentUser?.providerData.first?.providerID.
The text was updated successfully, but these errors were encountered:
Feature proposal
Description
Currently the file FIRAuthProvider.m contains auth provider ids, as
constants
.My request is to replace these with an
enum
, so it'll be easier to makeswitch-case
block when needed.It just makes a lot more sense than creating my own enum by manually copying the values from the file or make some non-convenience long and unnecessary
else-if
.P.S. You may add as well case for
AppleProviderID
as"apple.com"
.Usage case example
Generate the correct credential for
reauthenticate(with: credential)
based onAuth.auth().currentUser?.providerData.first?.providerID
.The text was updated successfully, but these errors were encountered: