Skip to content

Conversation

@thiva-k
Copy link
Contributor

@thiva-k thiva-k commented Dec 3, 2025

This pull request updates the authentication flow in both the API and React client to use authId instead of sessionDataKey for tracking authentication sessions in Asgardeo V2. The change standardizes the identifier used across API requests, React components, and session storage, improving consistency and clarity throughout the codebase.

Authentication Identifier Migration:

  • Replaced all usage of sessionDataKey with authId in the API functions executeEmbeddedSignInFlowV2 and executeEmbeddedSignUpFlowV2, including request payloads and conditional logic. [1] [2] [3] [4] [5] [6]
  • Updated the EmbeddedFlowExecuteRequestConfigV2 interface in both sign-in and sign-up models to use an optional authId property instead of sessionDataKey. [1] [2]

React Client and Component Updates:

  • Refactored the React client (AsgardeoReactClient.ts) to retrieve, store, and pass authId from URL parameters and session storage, replacing all references to sessionDataKey.
  • Modified the SignIn component to handle authId instead of sessionDataKey in URL parsing, session storage operations, and flow cleanup logic, ensuring the new identifier is used throughout the sign-in flow. [1] [2] [3] [4] [5] [6] [7]

Related PR

@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 dbdcdef into asgardeo:main Dec 5, 2025
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.

3 participants