For a specific device, you can use tinydb to store the login credentials, then return these at runtime (when the app is opened) to "automate" the login.
Without seeing your relevant login blocks for firebase it is difficult to advise further.
You should read this before asking further questions: