Skip to content

Conversation

@gyaneshgouraw-okta
Copy link
Contributor

🔄 Changes

  • Enhanced type safety in Auth0Provider and its reducer by introducing a generic user type.
  • Updated Auth0ProviderOptions interface to accept a generic user type.
  • Modified the onRedirectCallback function to accept the generic user type.
  • Updated the reducer function to handle the generic user type.

🧪 Testing

  • The changes were tested by integrating them to a sample app and verifying with a generic user type

💥 Impact

📋 Checklist

  • Code follows the project's coding standards
  • All tests are passing
@gyaneshgouraw-okta gyaneshgouraw-okta merged commit 93aa7d6 into main Jun 24, 2025
10 of 11 checks passed
@gyaneshgouraw-okta gyaneshgouraw-okta deleted the fix/generic-user-type branch June 24, 2025 15:42
gyaneshgouraw-okta added a commit that referenced this pull request Jul 22, 2025
**Added** - Bump @auth0/auth0-spa-js from 2.2.0 to 2.3.0 [\#858](#858) ([dependabot[bot]](https://github.com/apps/dependabot)) **Fixed** - Enhance type safety in Auth0Provider and reducer by introducing generic user type [\#842](#842) ([gyaneshgouraw-okta](https://github.com/gyaneshgouraw-okta))
gyaneshgouraw-okta added a commit that referenced this pull request Sep 17, 2025
…ic user type (#842) ### 🔄 Changes - Enhanced type safety in `Auth0Provider` and its reducer by introducing a generic user type. - Updated `Auth0ProviderOptions` interface to accept a generic user type. - Modified the `onRedirectCallback` function to accept the generic user type. - Updated the reducer function to handle the generic user type. ### 🧪 Testing - The changes were tested by integrating them to a sample app and verifying with a generic user type ### 💥 Impact - Improved type safety for the `Auth0Provider` component and reducer. - No changes to the functionality of the component are expected. - No performance impact is anticipated. - This PR addresses issue mentioned in #748 ### 📋 Checklist - [x] Code follows the project's coding standards - [x] All tests are passing
gyaneshgouraw-okta added a commit that referenced this pull request Sep 17, 2025
**Added** - Bump @auth0/auth0-spa-js from 2.2.0 to 2.3.0 [\#858](#858) ([dependabot[bot]](https://github.com/apps/dependabot)) **Fixed** - Enhance type safety in Auth0Provider and reducer by introducing generic user type [\#842](#842) ([gyaneshgouraw-okta](https://github.com/gyaneshgouraw-okta))
techman823 added a commit to techman823/auth0-react that referenced this pull request Sep 30, 2025
**Added** - Bump @auth0/auth0-spa-js from 2.2.0 to 2.3.0 [\#858](auth0/auth0-react#858) ([dependabot[bot]](https://github.com/apps/dependabot)) **Fixed** - Enhance type safety in Auth0Provider and reducer by introducing generic user type [\#842](auth0/auth0-react#842) ([gyaneshgouraw-okta](https://github.com/gyaneshgouraw-okta))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants