Modifying the Session Timeout
The Singular SDK manages user sessions automatically, so you don't need to add any code to handle sessions. However, you can modify the session timeout value if you want.
By default, if the app runs in the background for 60 seconds or more before returning to the foreground, the SDK registers a new session.
To change the timeout value, use .withSessionTimeoutInSec when you create the SingularConfig object. For example:
const config = new SingularConfig('<SDK KEY>', '<SDK SECRET>')
.withSessionTimeoutInSec(120); // Set timeout to 120 seconds
Singular.init(config);