Skip to content

🐛 [firebase_auth] Apple Sign-In: missing-email An email address must be provided error triggered even on the first login attempt using AppleAuthProvider. #11878

@mtalha101

Description

@mtalha101

Bug report

Describe the bug
Even with the new users, signing in using Apple Auth Providers returns an error with 'null' email and display name. When tapping on the SIgn in with Apple button, no bottomsheet showing an option to hide or share email is displayed, rather it directly displays Continue with Password sheet. I've previously done it using the sign_in_with_apple plugin, but unfortunately, the problem is the same.

Steps to reproduce

Below is the sample code I'm trying to test.

try { final userCreds = await _firebaseAuth.signInWithProvider(AppleAuthProvider()); return userCreds; } catch (e, s) { FirebaseCrashlytics.instance.recordError(e, s); return null; }

Expected behavior

The Sign in with Apple should show a bottomsheet to allow users to choose to hide or share their email, and then proceed to next step of authenticating with password, touch ID or face ID.

Sample project

Simulator Screenshot - iPhone Xs - 2023-11-13 at 16 52 18

Flutter dependencies

firebase_core: ^2.11.0
firebase_auth: ^4.12.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    StaleIssue with no recent activityblocked: customer-responseWaiting for customer response, e.g. more information was requested.closed-by-botresolution: no-responseCustomer did not respond after some time.triageIssue is currently being triaged.type: bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions