Understanding JWT Tokens
When users authenticate through Authiqa, they receive a JWT token that contains:- User ID
- Account Type (parent/child)
- public Key
- Parent Account (for child accounts)
Token Storage
The widget automatically handles token storage:Token Verification
Parent Accounts
Child Accounts
Security Considerations
Token Expiration
- Tokens expire after 24 hours
- Check expiration before operations
- Redirect to login when expired
Storage Security
- Tokens stored in localStorage
- Clear on logout
- Encrypt sensitive data
Error Handling
Common token verification errors:TOKEN_EXPIRED: Token has expiredINVALID_TOKEN: Token is malformedPARENT_MISMATCH: Parent-child relationship verification failed

