I have used \"signInWithCustomToken()\" to authenticate firebase user.
This token expires in 1 hour.
Firebase has recommended tok
You can get refreshed token using this code
FirebaseInstanceId.getInstance().getToken();
FirebaseInstanceId is my Class Name change it according to you.
FirebaseInstanceId