NodeJS authentication with Firebase

后端 未结 1 847
独厮守ぢ
独厮守ぢ 2021-02-03 22:52

I would like to authenticate and keep sessions via NodeJS with Firebase. Client can\'t directly communicate with Firebase.

In short:

Client (brow

1条回答
  •  野性不改
    2021-02-03 23:19

    You can authenticate clients on their respective devices/browsers using the client SDK, and them get them to send an ID token to a backend service written using firebase-admin (the admin SDK). The admin SDK provides methods for validating ID tokens sent by clients: https://firebase.google.com/docs/auth/admin/verify-id-tokens

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