Anonymous login
Create temporary user sessions without email or personal information - perfect for guest access that converts to real accounts.
Anonymous sessions let you create user accounts without requiring email, phone, or any personal information. They're regular user accounts that just lack identity credentials.
How it works
Anonymous users are identical to regular users except:
- No email address
- No phone number
- No personal identity information
- Same permissions and capabilities as regular users (based on your setup)
- Can be converted to regular accounts anytime
Create anonymous session
One method call creates a user account without identity data:
import { Client } from "@nuvix/client";
const nx = new Client()
    .setEndpoint('https://api.nuvix.in/v1')
    .setProject('<PROJECT_ID>');
// Create anonymous session
const session = await nx.account.createAnonymousSession();Convert to regular account
When users provide identity information (email, phone, etc.), convert their anonymous account to a regular user account using any authentication method.
The conversion process:
- User provides identity (email, phone, social login)
- Anonymous account gets identity attached
- Same user ID, now with credentials
- Session continues uninterrupted
Common use cases
- Guest checkout - Let users shop without signup friction
- Try before buy - Demo features before requiring registration
- Progressive onboarding - Collect identity after user sees value
- Reduced friction - Lower barrier to entry for new users
Implementation notes
Anonymous sessions follow the same permission rules as regular users. Their capabilities depend entirely on your app's permission configuration, not on their anonymous status.
How is this guide?
Last updated on