Skip to content

Convert FIRAuthProvider.m constants into enum #9236

Closed

Description

@Idomo

Feature proposal

  • Firebase Component: Auth

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 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.

Activity

  1. added this to the Firebase 11 milestone on May 28, 2023
  2. paulb777 commented on May 28, 2023

    @paulb777
    Member

    Implemented in auth-swift branch.

  3. self-assigned this
    on May 29, 2024
  4. locked and limited conversation to collaborators on Jul 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions