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
func enroll(
with assertion:MultiFactorAssertion,
displayName:String?)asyncthrows
The displayName property here is optional.
However, we've noticed after upgrading from 10.24.0 to 11.3.0 that the call errors with an internal error stating "Request contains an invalid argument" if displayName is nil.
If we set displayName to e.g. an empty string "" instead, it works as expected.
Description
When enrolling multi factor, you call the following enroll method:
The
displayName
property here is optional.However, we've noticed after upgrading from 10.24.0 to 11.3.0 that the call errors with an internal error stating "Request contains an invalid argument" if
displayName
isnil
.If we set
displayName
to e.g. an empty string""
instead, it works as expected.Reproducing the issue
displayName: nil
) fails with internal error "Request contains an invalid argument."displayName: ""
) works as expectedFirebase SDK Version
11.3.0
Xcode Version
16.0
Installation Method
Swift Package Manager
Firebase Product(s)
Authentication
Targeted Platforms
iOS
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: