This article provides an introduction to Ditto’s methods for authentication, as well as step‑by‑step instructions on how to use the server connection with development provider authentication mode to initialize Ditto and start prototyping.
authenticationExpiringSoon.
If you do not implement this, then sync will stop when the token expires.