Repository navigation
Release 3.0.0
React Client Auth SDK v3.0.0
Breaking Changes
1. Tenant Domain → Tenant Name
redirectToLogin()andredirectToLogout()now usetenantNameconfig instead oftenantDomain- Query parameter changed from
tenant_domaintotenant_name - Backwards compatible: Pass
tenant_domainin URL if backend doesn't support new naming yet
2. Enums → String Literal Unions
AuthStatusandWristbandErrorCodeare now string literal unions (not enums)- Use
'LOADING'instead ofAuthStatus.LOADING - Use
'UNAUTHENTICATED'instead ofWristbandErrorCode.UNAUTHENTICATED - Benefits: Zero runtime overhead, better tree-shaking, simpler usage
New Features
- Added
getCsrfToken()utility for Fetch API users