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
In FirebaseAuth/Sources/Swift/ActionCode/ActionCodeURL.swift, the language code is extracted using the key "languageCode" from the query parameters. However, according to the official Firebase documentation, the correct query parameter key for the language code is "lang".
Description
In
FirebaseAuth/Sources/Swift/ActionCode/ActionCodeURL.swift
, the language code is extracted using the key"languageCode"
from the query parameters. However, according to the official Firebase documentation, the correct query parameter key for the language code is"lang"
.Firebase documentation for custom email handlers specifies the parameter name as
lang
:https://firebase.google.com/docs/auth/custom-email-handler#create_the_email_action_handler_page
This discrepancy leads to the
languageCode
property inActionCodeURL
beingnil
even when the URL contains a validlang
parameter.File/Code Reference:
https://github.com/firebase/firebase-ios-sdk/blob/HEAD/FirebaseAuth/Sources/Swift/ActionCode/ActionCodeURL.swift#L59
Reproducing the issue
Example URL
Expected behavior:
ActionCodeURL.languageCode == "de"
Actual behavior:
ActionCodeURL.languageCode == nil
Firebase SDK Version
11.11.0
Xcode Version
16.3
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
snippetReplace this line with the contents of your Package.resolved.
If using CocoaPods, the project's Podfile.lock
Expand
Podfile.lock
snippetReplace this line with the contents of your Podfile.lock!
The text was updated successfully, but these errors were encountered: