Skip to content

Release 3.0.0

Choose a tag to compare

@jim-verducci jim-verducci released this 08 Dec 07:25
· 3 commits to main since this release
23ccd74

React Client Auth SDK v3.0.0

Breaking Changes

1. Tenant Domain → Tenant Name

  • redirectToLogin() and redirectToLogout() now use tenantName config instead of tenantDomain
  • Query parameter changed from tenant_domain to tenant_name
  • Backwards compatible: Pass tenant_domain in URL if backend doesn't support new naming yet

2. Enums → String Literal Unions

  • AuthStatus and WristbandErrorCode are now string literal unions (not enums)
  • Use 'LOADING' instead of AuthStatus.LOADING
  • Use 'UNAUTHENTICATED' instead of WristbandErrorCode.UNAUTHENTICATED
  • Benefits: Zero runtime overhead, better tree-shaking, simpler usage

New Features

  • Added getCsrfToken() utility for Fetch API users