Firebase gives you complete control over authentication by allowing you to authenticate users or devices using secure JSON Web Tokens (JWTs). … The custom JWT returned from your server can then be used by a client device to authenticate with Firebase (iOS+, Android, web).