anonymize
Disassociate the session from the current user.
This method clears the ID of the currently identified user.
The SDK automatically emits a userSignedOut event. As a result, the current session is terminated and a new session is started.
Calling this method has no effect if the user is already anonymous.
Signature
This method has the following signature:
croct.anonymize(): void
Example
Here is a basic example of how to use this method:
import croct from '@croct/plug';croct.anonymize();console.log(croct.isAnonymous()); // true