Authentication is required to access social.plus features. This comprehensive guide will take you from basic login to production-ready authentication patterns.
User Authentication
Backend Token Generation
social.plus Verification
Secure Communication
SDK Initialization
start
state, then immediately moves to:notLoggedIn
stateestablished
state (if session valid)Login Process
notLoggedIn
→ establishing
(login in progress)establishing
→ established
establishing
→ notLoggedIn
Active Session Management
established
state:established
→ tokenExpired
tokenExpired
→ established
established
→ terminated
established
→ notLoggedIn
Token Expiration Handling
tokenExpired
state:established
stateterminated
statenotLoggedIn
stateSession Termination
terminated
state:notLoggedIn
Backend Token Generation
Do's ✅
Don'ts ❌
established
stateterminated
state - users may be bannedSession state stuck in 'establishing'
Frequent token expiration
Session handler not called
App crashes on session state change