Skip to content

Conversation

subhankarmaiti
Copy link
Contributor

@subhankarmaiti subhankarmaiti commented Sep 19, 2025

This PR enhances the Auth0Provider component with improved platform-specific initialization logic and streamlined error handling:

Key improvements:

  • Platform-specific initialization: Added Platform.OS === 'web' detection to separate web and mobile initialization flows
  • Optimized credential checking: Mobile platforms now check hasValidCredentials() before attempting credential retrieval

Testing

  • Added comprehensive test coverage for platform-specific error handling
  • Updated existing tests to match the new initialization flow
  • All 290 tests pass with no regressions
  • Verified proper handling of both no_credentials and other credential errors

@subhankarmaiti subhankarmaiti requested a review from a team as a code owner September 19, 2025 10:39
@subhankarmaiti subhankarmaiti merged commit bb08d7a into master Sep 19, 2025
3 checks passed
@subhankarmaiti subhankarmaiti deleted the platform-specific-auth0provider-initialization branch September 19, 2025 15:42
NandanPrabhu added a commit that referenced this pull request Sep 29, 2025
* master:
  feat: add Claude Code PR Review workflow for enhanced pull request an… (#1317)
  feat: enhance Auth0Provider with platform-specific initialization and error handling (#1313)
  feat(web): Simplify Setup, Add Session Check & Fix Missing Refresh Token (#1303)
  Fix clearSession operation order to prevent premature user state clearing (#1309)
  Release v5.0.0-beta.6 (#1306)
  fix: concurrent credential storage errors by preventing unnecessary state updates (#1302)
  chore(deps): bump actions/checkout from 4 to 5 (#1272)
  chore(deps): bump actions/download-artifact from 4 to 5 (#1294)
  chore(deps): bump codecov/codecov-action from 5.5.0 to 5.5.1 (#1296)
  fix(docs): added back the docs folder (#1291)
  Release v5.0.0-beta.5 (#1290)
  fix(docs): organize exports into namespaces for better typedocs (#1269)
  fix: add missing clearSession native options (#1289)
  fix(android): add pathPrefix to Android manifest for proper App Links functionality (#1288)
  feat: add organization parameter support to resetPassword API (#1286)
  feat(auth): add `saveCredentials` method to `useAuth0` hook (#1285)
  feat: unify and improve error handling across platforms (#1261)
  chore(deps): bump codecov/codecov-action from 5.4.3 to 5.5.0 (#1279)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants