reset() Method
To facilitate this, the SDK provides the reset() method.
- Java
- Kotlin
- Swift
Sample Use Cases
User Logout
When a user logs out of your application, you can call the
reset() method to ensure that their session and related data are wiped clean.Privacy Mode
If your platform has a privacy mode or similar feature, where data persistence isn’t desired, you can use the
reset() method to clear session data whenever needed.Error Recovery
In rare cases, if there are session-related issues or anomalies, invoking the
reset() method can serve as a first step in troubleshooting, ensuring a clean slate.