I\'m using Google authentication for my Firebase app, so I use the GoogleSignInClient to first generate a token and then log into Firebase with that.
GoogleSignInClient
Once th