login method. This seamless approach handles both new user creation and existing user authentication in a single operation.
The
login method serves dual purposes: it creates new users when they don’t exist and authenticates existing users when they do.How User Creation Works
When you call thelogin method:
- Existing User: If a user exists with the specified
userId, the SDK logs them in and optionally updates theirdisplayName - New User: If no user exists with the
userId, the SDK creates a new account and logs them in automatically
Parameters & Limits
User ID
Maximum 50 characters
Display Name
Maximum 100 characters
Implementation
Next Steps
Get User Information
Learn how to retrieve user data and profiles
Update User Information
Discover how to modify user profiles and settings