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