title: Authenticate in Firebase using Laravel credentials
body: <p>According with this tutorial: <a href="https://firebase.google.com/docs/auth/server?hl=es#crear_un_token_personalizado" rel="nofollow noreferrer">https://firebase.google.com/docs/auth/server?hl=es#crear_un_token_personalizado</a></p>
  
  <p>I can authenticate a user in a Firebase app (client side) using a JWT generated in the server.</p>
  
  <p>To achive that, I added a new dependency in my Laravel project: <a href="https://github.com/tymondesigns/jwt-auth" rel="nofollow noreferrer">jwt-auth</a></p>
  
  <p>I have setup correctly the authentication using a regular JWT. But, for authenticate in Firebase I need to generate a particular JWT, with custom parameters described in the tutorial.</p>
  
  <p>I have change the parameters. But it also requires to use the <code>RS256</code> algorithm. And I got errors when change the algorithm.</p>
  
  <p>The error says <code>Could not create token: openssl_pkey_get_details() expects parameter 1 to be resource, boolean given</code>.</p>
  
  <p>There is a issue reported in the Github of the package, and it tells that I need two passwords (private and public key). But I just have 1 key, taken from the Firebase console.</p>
  
  <p>Someone has implemented the Firebase authentication using credentials from an existing database?</p>
  
  <p>Really I need two passwords to use the mentioned algorithm?</p>
  
  <p>Please give me some ideas. Thank you in advance.</p>