Skip to main content
Clears the current user ID, cached entitlements, and all user attributes. A new anonymous ID is automatically generated.

Signature

reset(): Promise<{ success: boolean }>

Parameters

None.

Usage

const handleLogout = async () => {
  await Encore.reset();
  // Navigate to login screen
};
A new anonymous user ID is auto-generated after reset(). You don’t need to call configure() again.