scienst
scienst

Reputation: 103

Firebase security rules for multiple projects

I would like to only allow authenticated user from one project to be able to read data from another project, but nobody else can access the data.

How can I accomplish that ?

Thank you

Upvotes: 0

Views: 319

Answers (1)

Michael Bleigh
Michael Bleigh

Reputation: 26343

Auth does not transcend project boundaries. You will need to authenticate the user into the project whose data you want to access. If you don't want to / can't do so directly, you will need to verify the token of Project A and then mint a custom token for Project B in a trusted environment such as a Cloud Function.

Upvotes: 1

Related Questions