Login Store
Login related interfaces, managing user login, logout, user information settings and other operations.
Overview
LoginStore Login management class for handling user login, logout and user information management business logic. LoginStore provides a complete set of login management APIs, including user login, logout, and personal information settings. Through this class, you can manage user login status and user profiles.
Key Features
User Login:Supports login using SDK application ID, user ID and user signature
User Logout:Supports user logout operation
Personal Information Settings:Supports setting user nickname, avatar, gender and other personal information
Important: Use LoginStore.shared singleton object to access the
LoginStoreinstance.
Tip: Login status updates are delivered through loginState publisher. Subscribe to it to receive real-time updates about login status.
Login Operations Overview
| Operation | Method | Description |
| Login | login | Login using SDK application ID user ID and user signature |
| Logout | logout | User logout |
| Set Info | setSelfInfo | Set user personal information |
Topics
Getting Instance
LoginStore.shared - Singleton object
Observing State
loginState - Login state
Observing Events
addLoginListener/removeLoginListener - Login event listener
Login Operations
login - Login
logout - Logout
setSelfInfo - Set personal information