X404AuthResult
All authentication features return anX404AuthResult:
Field Descriptions
boolean
required
Whether authentication was successful
boolean
Whether user was already authenticated (token exists in localStorage)
string
JWT token (if successful). Automatically stored in localStorage
unknown
Additional data returned from the server
string
Error type if authentication failed
string
Human-readable error message
'bronze' | 'silver' | 'gold'
User’s tier (only for X404Tier feature)
Success Example
Error Example
Usage
Error Types
All authentication functions can return the following error types:Token Storage
Each feature automatically stores its JWT token in localStorage with the following keys:sjwt404_timelock- Timelock featuresjwt404_blacklist- Blacklist featuresjwt404_multitoken- MultiToken featuresjwt404_activity- Activity featuresjwt404_tier- Tier featuresjwt404_nodebt- NoDebt featuresjwt404_age- Age feature