Firebase auth is primarily client side. The simplest answer here is to use the JS SDK on the client to authenticate, rather than trying to do this in Rails on the server. If your app is structured that you need the auth in Rails to render pages, you might need to try sending some data back and forth with the server (i.e. sending the auth id token to the server and using
verifyIdToken() from the admin sdk). Note that you can also
Auth via REST, but that's a whole other can of worms, since you likely need client interaction to complete Auth, which is tricky in RoR.