Enhance type safety in Auth0Provider and reducer by introducing generic user type#842
Merged
gyaneshgouraw-okta merged 3 commits intomainfrom Jun 24, 2025
Merged
Enhance type safety in Auth0Provider and reducer by introducing generic user type#842gyaneshgouraw-okta merged 3 commits intomainfrom
gyaneshgouraw-okta merged 3 commits intomainfrom
Conversation
frederikprijck
requested changes
Jun 18, 2025
frederikprijck
approved these changes
Jun 20, 2025
Merged
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))
6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🔄 Changes
Auth0Providerand its reducer by introducing a generic user type.Auth0ProviderOptionsinterface to accept a generic user type.onRedirectCallbackfunction to accept the generic user type.🧪 Testing
💥 Impact
Auth0Providercomponent and reducer.📋 Checklist