Change Firebase to a module and make a Client class.  So that you can use the Firebase provided JWT token generator library in the same app as firebase-ruby