How to handle custom firebase token expiry in Firebase 3.x.x

后端 未结 4 1702
孤街浪徒
孤街浪徒 2021-02-04 04:24

I have used \"signInWithCustomToken()\" to authenticate firebase user.

This token expires in 1 hour.

Firebase has recommended tok

4条回答
  •  梦如初夏
    2021-02-04 04:32

    You can get refreshed token using this code

    FirebaseInstanceId.getInstance().getToken();
    

    FirebaseInstanceId is my Class Name change it according to you.

提交回复
热议问题