Skip to content

[Question] Functions gen2 requests not authenticated #1120

@aixaCode

Description

@aixaCode

What is your question?

Hi,

We recently migrated to Gen 2 Firebase functions, and while the migration itself went smoothly, we're now encountering an issue when calling these functions from Unity. The following warning appears, preventing the functions from being executed:

The function must be called while authenticated.

We do not want to allow unauthenticated access to our service, as we rely on Firebase Auth for user authentication. All users interacting with our app are authenticated via Firebase Auth, so we expected this to work without issues. Could you advise on how we can ensure proper authentication of end users while resolving this warning?

We basically call it the same way as it was provided in the example here #1113 (comment)

Firebase Unity SDK Version

12.1.0

Unity editor version

2022.3.4.47

Installation Method

.unitypackage

Problematic Firebase Component(s)

Functions

Other Firebase Component(s) in use

No response

Additional SDKs you are using

No response

Targeted Platform(s)

Apple Platforms, Android, Desktop

Unity editor platform

Windows

Scripting Runtime

IL2CPP

Release Distribution Type

Pre-built SDK from https://firebase.google.com/download/unity

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