-
Notifications
You must be signed in to change notification settings - Fork 48
feat(react): introduce SignUp & B2B components
#71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Conversation
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
…state and improve API documentation
…mprove loading state handling
…mproved user profile display
…bedded signup flow types and interfaces
…g in executeEmbeddedSignUpFlow
…update client interfaces
…p flow, enhance AsgardeoProvider with response handling, and update routing in the sample app
…w, enhance AsgardeoProvider with sign-in logic, and update Dashboard to display user information
…components for sign-out handling
…ing in BaseUserDropdown and BaseUserProfile components
…w and update AsgardeoProvider for sign-in handling
…nInProps interface
…ion handling and improved prop management
…PasswordInput, and FormContainer; enhance translations and add new UI elements
…Input components for consistency
…for improved structure and clarity
…one) and update SignUpOptionFactory for integration
…generic ButtonComponent for improved variant management
… SignUpButton components for improved user experience
… imports, and enhance sign-in page layout
…ination support and enhance organization list components
…zation rendering and remove unused OrganizationProfile component
…or states in OrganizationSwitcher
…seOrganizationList and OrganizationProfile, and add manage profile functionality in BaseOrganizationSwitcher
…ationContext, implement pagination, and remove deprecated useOrganizations hook
…BaseOrganizationList with styled components and improved rendering logic
…mproved profile rendering, and customizable fields in BaseOrganizationProfile
…agement with editable profile support
… pairs and integrate it into BaseOrganizationProfile
- Created postcss.config.js and postcss.config.mjs for PostCSS integration with Tailwind CSS. - Added tailwind.config.js for Tailwind CSS configuration with custom themes and animations. - Updated tsconfig.json to target ES5 and include baseUrl for module resolution. - Removed unused SVG files from the public directory to clean up assets.
…unctionality - Updated ProfilePage component for better state management and code readability. - Introduced new header components: AuthenticatedActions, AuthenticatedMobileMenu, AuthenticatedNavigation, and PublicNavigation for improved structure. - Created OrganizationSwitcher and UserDropdown components for better organization management and user actions. - Removed legacy header component and consolidated functionality into new components. - Added ThemeProvider component for theme management.
…quest configurations
…sgardeoNextClient flow handling
- Removed the old SignIn and SignUp pages, replacing them with new implementations using Asgardeo for authentication. - Updated the Header component to conditionally render navigation based on authentication state using SignedIn and SignedOut components from Asgardeo. - Refactored the AuthProvider to mock user and organization data, and adjusted the useAuth hook to return mock data. - Updated routing paths for sign-in and sign-up to remove the "/auth" prefix. - Removed unused authentication utility functions and middleware, integrating Asgardeo's middleware for session management. - Cleaned up various components and styles for consistency and improved readability.
…n name and add user information display example
SignUp & B2B components
…uthenticatedMobileMenu, AuthenticatedNavigation, and PublicNavigation
NipuniBhagya
approved these changes
Jun 25, 2025
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.
Purpose
This pull request introduces several updates across multiple files to improve code consistency, simplify logic, and enhance maintainability. Key changes include the adoption of a new error code convention, the replacement of
IdTokenPayloadwithIdTokenfor better type clarity, and the removal of redundant code in authentication-related methods.Error Code Convention Updates:
ERROR_CODES.md: Added a comprehensive document defining the error code convention used in the Asgardeo JavaScript SDK, including format, numbering strategy, and migration notes. This ensures consistency and ease of debugging.Type Updates:
packages/browser/src/__legacy__/client.ts: ReplacedIdTokenPayloadwithIdTokenin both imports and thegetDecodedIdTokenmethod to align with updated type definitions. [1] [2]packages/browser/src/__legacy__/clients/main-thread-client.ts: Updated imports and methods to useIdTokeninstead ofIdTokenPayload. [1] [2]packages/browser/src/__legacy__/clients/web-worker-client.ts: Changed type references fromIdTokenPayloadtoIdTokenin imports and methods likegetDecodedIdTokenandgetDecodedIDPIDToken. [1] [2] [3]packages/browser/src/__legacy__/helpers/authentication-helper.ts: Updated imports to replaceIdTokenPayloadwithIdToken.Code Simplification:
packages/browser/src/__legacy__/clients/main-thread-client.ts: Removed redundantawaitstatements and simplified arrow function syntax across methods such ashttpRequest,exchangeToken, andshouldStopAuthn. [1] [2] [3] [4]packages/browser/src/__legacy__/clients/main-thread-client.ts: Removed deprecated methods (initializeApplicationNativeAuthenticationandhandleApplicationNativeAuthentication) and replaced them withinitializeEmbeddedSignInFlow. [1] [2]Copyright Update:
packages/browser/src/__legacy__/clients/main-thread-client.ts: Updated copyright information to reflect the transition from WSO2 Inc. to WSO2 LLC.Formatting Improvements:
.vscode/settings.json: Adjusted JSON formatting for better readability and added a new settingnxConsole.generateAiAgentRules.Related Issues
SignUpcomponent for@asgardeo/react#70Related PRs
Checklist
Security checks