Skip to content

ActionCodeOperation mapping fails due to incorrect requestType casting in ActionCodeInfo #15010

Open
@emisanpre

Description

@emisanpre

Description

This issue is related with the PR #14668 and Issue #14665

In FirebaseAuth/Sources/Swift/ActionCode/ActionCodeInfo.swift, the method actionCodeOperation(forRequestType:) uses camelCase (e.g. "resetPassword", "verifyEmail") to match against the request type string received from the server.

This method should use SCREAMING_SNAKE_CASE.

Because of this mismatch, the method always returns .unknown.

Screenshot from the debug:

Image

P.D: I am developing in flutter, not sure if this issue is in the right place. It only occurs in IOS devices.

Reproducing the issue

  1. Trigger any Firebase action that sends an email with an action link (e.g., verify email).
  2. When passed to actionCodeOperation(forRequestType:), the internal mapping in ActionCodeInfo returns .unknown.

Firebase SDK Version

11.13.0

Xcode Version

16.3.0

Installation Method

Swift Package Manager

Firebase Product(s)

Authentication

Targeted Platforms

All

Relevant Log Output

If using Swift Package Manager, the project's Package.resolved

Expand Package.resolved snippet
Replace this line with the contents of your Package.resolved.

If using CocoaPods, the project's Podfile.lock

Expand Podfile.lock snippet
Replace this line with the contents of your Podfile.lock!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions