-
Notifications
You must be signed in to change notification settings - Fork 48
feat: SignIn component for @asgardeo/react
#68
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
feat: implement utility function for class name merging using clsx and tailwind-merge chore: configure Tailwind CSS with custom theme and extend default settings fix: update TypeScript configuration for path aliases and improve type checking chore: update Vite configuration to include Tailwind CSS plugin and path alias resolution
…iscovery interfaces
…AuthResponseMode type
…s across multiple files
…introduce utility function
…um across multiple files
…r` across multiple files
- Deleted the `authentication-core.ts` file which contained the core authentication logic. - Removed the `index.ts` file that exported the authentication core. - Updated the main index file to include `SessionData` from the models.
…Exception to errors directory and updating imports
…OAuth2 authorization
…ds and refactor user information retrieval
… for consistency
…ew methods and refactor user information retrieval" This reverts commit bbba841.
…t and refactor related configurations
…cy across codebase
…tiple files for consistency
…` for consistency
…and SignedIn, SignedOut control components
… creation page with mock authentication and organization data Refactor: Update organizations page to use mock data and improve role handling Refactor: Enhance profile page with mock user data and improve form handling Cleanup: Remove unused authentication hooks and related functions Cleanup: Delete unused authentication and session management logic Cleanup: Remove Next.js configuration and PostCSS setup Cleanup: Delete global CSS and Tailwind configuration files
…o authentication middleware - Deleted unused UI components including Alert, Avatar, Badge, Button, Card, Checkbox, DropdownMenu, Input, Label, and Textarea. - Removed the ThemeProvider and Header components. - Deleted the mock authentication context and utility functions. - Added Asgardeo authentication middleware for handling user authentication. - Updated package.json to include Asgardeo dependencies and adjusted versions for other packages. - Created an example .env.local file for configuration. - Removed old Next.js configuration files and updated TypeScript configuration.
…, and node packages; bump react package version to 0.3.0
JayaShakthi97
approved these changes
Jun 17, 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 to the Asgardeo JavaScript SDKs, including new features, terminology updates, and internal refactoring. The most notable changes include the addition of a new SDK for Express.js, updates to improve consistency in naming conventions, and refactoring of the legacy core to use a new storage management system instead of the data layer.
Main Improvements
SiignInA comprehensive sign-in component that renders a complete sign-in interface with customizable styling and behavior.
Props
classNamestringredirectUrlstringonSignInStart() => voidonSignInSuccess(user: User) => voidonSignInError(error: Error) => voidbuttonTextstringloadingTextstringdisabledbooleanExample
Customization: See Customization for comprehensive styling and theming options.
Available CSS Classes
.asgardeo-signin- Main sign-in container.asgardeo-signin--small- Small size variant.asgardeo-signin--large- Large size variant.asgardeo-signin--outlined- Outlined variant.asgardeo-signin--filled- Filled variant.asgardeo-signin__input- Input field elements.asgardeo-signin__input--small- Small input variant.asgardeo-signin__input--large- Large input variant.asgardeo-signin__button- Sign-in button element.asgardeo-signin__button--small- Small button variant.asgardeo-signin__button--large- Large button variant.asgardeo-signin__button--outlined- Outlined button variant.asgardeo-signin__button--filled- Filled button variant.asgardeo-signin__error- Error message container.asgardeo-signin__messages- Messages containerOther
New SDK Addition:
README.mdfile. (README.md)Naming Convention Updates:
signInRedirectURLwithafterSignInUrlandclientIDwithclientIdacross documentation and code examples for improved consistency. (docs/src/react/components/asgardeo-provider.md,docs/src/react/introduction.md) [1] [2]isAuthenticatedproperty toisSignedInin theuseAuthenticationhook and related components for clarity. (docs/src/react/hooks/use-authentication.md,packages/__legacy__/react/src/components/SignIn/SignIn.tsx,packages/__legacy__/react/src/components/SignedIn/SignedIn.tsx,packages/__legacy__/react/src/components/SignedOut/SignedOut.tsx) [1] [2] [3] [4] [5] [6]Refactoring for Storage Management:
data layerwith thestorage managerfor configuration and temporary data handling in the legacy core. (packages/__legacy__/core/src/api/authenticate.ts,packages/__legacy__/core/src/api/authorize.ts,packages/__legacy__/core/src/api/get-branding-preference-text.ts,packages/__legacy__/core/src/api/get-branding-preference.ts,packages/__legacy__/core/src/api/get-profile-information.ts,packages/__legacy__/core/src/api/sign-out.ts,packages/__legacy__/core/src/branding/get-branding.ts,packages/__legacy__/core/src/i18n/get-localization.ts,packages/__legacy__/react/src/components/SignIn/SignIn.tsx) [1] [2] [3] [4] [5] [6] [7] [8] [9]Internal Codebase Updates:
ResponseModeimport and replaced its usage with a direct string value for simplification. (packages/__legacy__/core/src/auth-client.ts,packages/__legacy__/core/src/api/sign-out.ts) [1] [2] [3] [4]package.jsonto reflect the new project structure. (package.json)These updates enhance the SDK's usability, maintain consistency across the codebase, and improve internal architecture for better maintainability.
Related Issues
SignIncomponent for@asgardeo/react#66Related PRs
Checklist
Security checks