Home > front end >  How to authenticate with firebase rules (RESTful)
How to authenticate with firebase rules (RESTful)

Time:10-12

I am not sure where I pass my auth uid token when I am making a request to firebase.

I've tried:

[myfirebaseurl]/path/1234.json?auth=[uid that i set].

Along with putting the UID in headers, content, and authorization. I am currently testing on reqbin before I put this into my application.

Basically, is it a url parameter, header, or where should I pass a UID that i set in the firebase rules tab?

Thanks for any help!

CodePudding user response:

It looks like you're trying to authenticate with an ID token. The ID token is not the same thing as the UID, it would be too easy to access someone else's account if all you needed was their UID.

You need to retrieve an ID token and use that where you are currently using the UID.

  • Related