-
Notifications
You must be signed in to change notification settings - Fork 46
chore(nextjs): add B2B components
#85
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
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
…r branding configuration
…Details in branding preference models
…onfig in multiple endpoints
…ponents for user profile management
…nt and improved error handling
…ng in AsgardeoProvider
… parameter across multiple components
…ardeoProvider components
…nal parameters for user and organization methods
JayaShakthi97
previously approved these changes
Jul 2, 2025
NipuniBhagya
previously approved these changes
Jul 2, 2025
…mponents and utilities
e4ecf2e
savindi7
approved these changes
Jul 2, 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, focusing on improving session management, adding theme detection capabilities, enhancing API request handling, and expanding functionality in the JavaScript client. Below is a categorized summary of the most important changes.
Session Management Updates
getDecodedIdTokenmethod across multiple files (client.ts,main-thread-client.ts,web-worker-client.ts,authentication-helper.ts,client.ts,web-worker.ts,worker-core.ts) to accept an optionalsessionIdparameter, enabling session-specific token decoding. [1] [2] [3] [4] [5] [6] [7] [8]Theme Detection Features
themeDetection.tsfile that introduces utilities for browser-based theme detection, including methods for detecting theme mode (detectThemeMode), observing class changes (createClassObserver), and listening to media query changes (createMediaQueryListener).index.tsfile to make them accessible throughout the application.API Enhancements
createOrganization.ts,executeEmbeddedSignInFlow.ts,executeEmbeddedSignUpFlow.ts,getAllOrganizations.ts) to ensurerequestConfigis properly spread for better flexibility and customization of headers and other configurations. [1] [2] [3] [4]createOrganizationfunction to improve debugging capabilities.JavaScript Client Updates
AsgardeoJavaScriptClientclass to support optional parameters for methods likegetUser,getOrganizations,getCurrentOrganization, andgetUserProfile, and added a new methodupdateUserProfile. These changes improve flexibility and allow session-specific or user-specific operations.Branding Preference Test Addition
getBrandingPreferenceAPI, covering successful fetches, query parameter handling, custom fetchers, error scenarios (invalid URLs, HTTP errors, network errors), and custom headers.Related Issues
Related PRs
Checklist
Security checks