Skip to content

feat: revamped @asgardeo/react SDK with basic re-direction based capabilities & components #59

@brionmario

Description

@brionmario

Is your feature request related to a problem? Please describe.
The current SDK requires verbose configuration and lacks a DX-optimized API for redirection-based authentication. Additionally, it doesn’t provide drop-in UI components for common scenarios, making initial setup slower for developers.

Describe the solution you would prefer
Implement a minimal, intuitive redirect-based authentication flow with:

  • ✅ Simplified configuration (e.g., clientID, baseUrl, signInRedirectURL, signOutRedirectURL)
  • ✅ A unified useAsgardeo hook for accessing signIn, signOut, isSignedIn, and user info
  • ✅ Drop-in components:
    • <SignInButton />
    • <SignOutButton />
    • <SignedIn>{children}</SignedIn>
    • <SignedOut>{children}</SignedOut>

This should allow developers to add authentication to their apps with minimal effort and no deep IAM knowledge.

Additional context
This serves as the foundational release in the SDK revamp effort, focusing solely on redirection flows. Future issues will introduce in-app (popup/native) login support and advanced configuration overrides.

Metadata

Metadata

Assignees

Labels

@asgardeo/reactIssues related to the `React.js` wrapper of Asgardeo JavaScript SDKType/New Feature

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions