Skip to content

Conversation

@thiva-k
Copy link
Contributor

@thiva-k thiva-k commented Jan 25, 2026

This pull request introduces improvements to the Asgardeo React SDK's sign-up flow, specifically enhancing support for OAuth-based registration flows and ensuring smoother handling of redirect scenarios after sign-up. The main changes focus on correctly managing the authId parameter and handling OAuth redirect URLs.

Enhancements for OAuth-based sign-up flow:

  • AsgardeoReactClient.ts: Added logic to read the authId from the URL parameters or sessionStorage, ensuring it is available to complete the OAuth flow after registration. If authId is found in the URL but not in storage, it is saved to sessionStorage for subsequent use. The authId is then passed to the executeEmbeddedSignUpFlowV2 function.

Sign-up redirect handling improvements:

  • SignUp.tsx: Updated the sign-up completion handler to check for an OAuth redirect URL in the response. If present and redirection is enabled, the browser is redirected to this URL to complete the OAuth flow. This ensures users are seamlessly redirected after registration with OAuth.

Related issue-

Related PR-

@thiva-k thiva-k changed the title Fix auto login after signup Fix auto-login after self-registration Jan 25, 2026
brionmario
brionmario previously approved these changes Jan 26, 2026
@thiva-k thiva-k dismissed stale reviews from brionmario and ThaminduDilshan via d361c69 January 26, 2026 04:07
@asgardeo-github-bot
Copy link

🦋 Changeset detected

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

@brionmario brionmario merged commit 45889f0 into asgardeo:main Jan 26, 2026
3 of 6 checks passed
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.

4 participants