How do I send Firebase token to backend (Node / Express) via HTTPS

前端 未结 1 1476
闹比i
闹比i 2021-01-13 13:26

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 d

相关标签:
1条回答
  • 2021-01-13 13:51

    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.

    0 讨论(0)
提交回复
热议问题