title: REST api authentication using firebase admin sdk
body: <p>I have a REST api and the authentication is done using jwt tokens. To make may api more secure (users and authentication mechanism) I would like to use firebase authentication. I would like to know can we use firebase as a authentication server for my REST APIs.</p>
  
  <p>My understanding is that the client app will send the username and password to the firebase server and they will provide a token. Using that token client app will send an api call to our server. I need to integrate firebase admin SDK in my server and validate the token using admin SDK to get the data from my database. </p>
  
  <p>Please correct me when I am wrong.</p>
  
  <p>Also, i have a concern that how to manage refresh tokens to keep my app logged in. </p>
  
  <p>Please help me to integrate this in the right way, and I am using nodejs/expressjs to create the APIs.</p>