Trying to setup Firebase Cloud Messaging for the first time. In the guide for Web app, there is a section on monitoring registration token refresh with onTokenRefresh
.
https://firebase.google.com/docs/cloud-messaging/js/client?authuser=0#access_the_registration_token
However, looking in reference documentation I see this method is deprecated.
https://firebase.google.com/docs/reference/js/firebase.messaging.Messaging?authuser=0#ontokenrefresh
What does it mean there is no need to handle token rotation? Is a token obtained with getToken
permanent? It's not a standard JWT token, so I couldn't decrypt if there is some sort of expiration.