Authentication Strategies
B3 Global Accounts support multiple authentication strategies to fit your application’s needs.Social Login
Google Authentication
Discord Authentication
Session Key Authentication
Session keys provide enhanced security and allow for granular permissions. This is particularly useful for games and applications that need to perform actions on behalf of users.Basic Session Key Setup
Custom Session Key Configuration
Headless Authentication
For custom implementations, use the headless authentication service:Basic Authentication
React Native Authentication
Authentication Hooks
useB3 Hook
The primary hook for accessing authentication state:useAccountWallet Hook
Access wallet information:Error Handling
Implement proper error handling for authentication flows:Best Practices
Partner ID
Always use your unique partner ID for proper attribution and analytics.
Error Handling
Implement comprehensive error handling for better user experience.
Session Management
Set appropriate session durations based on your application’s security needs.
Environment Config
Use proper environment variables for different deployment stages.