The simple login jar depends on the Android runtime, but if you just want to authenticate a server, you can do one of two things:
Use your Firebase secret as the auth credential
Generate a specific admin token for your server
See the documentation here: https://www.firebase.com/docs/security/custom-login.html
Helper libraries are available in several languages for generating your own token.