Solana App Kit provides a comprehensive state management solution using Redux Toolkit. Our state modules are designed to be modular, allowing you to import only what you need.
The auth state slice handles user authentication, profiles, and session management.
loginSuccess
- Updates state after successful authenticationlogoutSuccess
- Clears user data on logoutfetchUserProfile
- Async thunk for retrieving user profile dataupdateUsername
- Updates the user’s username in the databaseupdateProfilePic
- Updates the user’s profile pictureSee individual state module documentation for more details on each slice.