5

I have client-side login on my app which is working just fine. Now I need to pass the clients UID to Node.

Found this Verify ID Tokens in Firebase docs, but i just don't know how would i actually do this part: "Send token to your backend via HTTPS"

ReyAnthonyRenacia
  • 17,219
  • 5
  • 37
  • 56
VilleKoo
  • 2,827
  • 2
  • 14
  • 23

1 Answers1

2

Does your Node server-side piece have an API already created, or do you need to build that?

There are many ways to pass this information from the client to the server. Sometimes auth information is passed in an HTTP header of an API call that does something else. Sometimes APIs include a specific call to "register" a user with the backend, where you would pass the client-side token to the server in the payload of that one call.

There is no single best way to pass the client user authorization information to the server, every application needs to make that decision as part of their server-side design.

Scott Kronheim
  • 762
  • 6
  • 7
  • Even though your answer doesn't directly answer to my question (Like you said, "There is no single best way"), i'm gonna accept this. You definitely pointed me towards the right direction and helped me to solve the problem. So thank you :) – VilleKoo Oct 27 '17 at 11:12
  • 2
    @Scott Kronheim good answer. I just asked a similar question. I'm a Swift developer and I need to setup an API on my Node sever but I'm not a Node developer. Would you be able to add some links on any tutorials on how to to this in Node? – Lance Samaria Nov 01 '17 at 18:11