Skip to content

Callable Cloud Function receives null context.auth in Test Mode #6355

@GoingSteddy

Description

@GoingSteddy

Can we access your project?

  • I give permission for members of the FlutterFlow team to access and test my project for the sole purpose of investigating this issue.

Current Behavior

The app gets stuck on the "Finding Matches" loading screen indefinitely after a user logs in. The getMatches onCall Cloud Function is triggered, but the logs show it fails immediately. The Device Logs show a Cloud call error! with an UNAUTHENTICATED message, even though the client-side of the app can correctly display the authenticated user's ID right before the function is called.

Expected Behavior

After a user logs in, the getMatches Cloud Function should receive a valid authenticated user context (context.auth should be populated). The function should execute, and the app should navigate to the Spotlight page with the match results.

Steps to Reproduce

Start the app from a logged-out state.

Log in using valid email credentials.

The app automatically navigates to the "Finding Matches" loading page.

Observe that the loading animation loops forever and never navigates away.

Check the Cloud Function logs for the getMatches function to see that it only logs its first message and fails before authenticating.

Reproducible from Blank

  • The steps to reproduce above start from a blank project.

Bug Report Code (Required)

IT4okcmA5Yp2j7xK0LrucvlKpyQXOWY6arsnlcpBZywgfZzzBLN/fPfQP1doZN+qdAhEOk62p140w9aKk+DhFscDOQiWGKpOyodqWwHyRmGQV4uTF7uCfHZ5M9pQI2Kz18OnhwhBPtNsWHdg3FOAA9iiZAHDJabjIkQ4Sq/LZO4=

Visual documentation

Image Image Image

Environment

- FlutterFlow version: 6.1.33
- Platform: FlutterFlow Desktop App for macOS, testing on the iOS Simulator.
- Browser name and version: N/A
- Operating system and version affected: Sequoia 15.5 (24F74)

Additional Information

Thank you for the help!! Here is the project link: https://app.flutterflow.io/project/going-steddy-lynrvp

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions