-
Notifications
You must be signed in to change notification settings - Fork 49
Closed
Labels
@asgardeo/nextjsIssues related to the `Next.js` wrapper of Asgardeo JavaScript SDKIssues related to the `Next.js` wrapper of Asgardeo JavaScript SDKType/New Feature
Milestone
Description
Is your feature request related to a problem? Please describe.
Next.js developers need an easy way to integrate Asgardeo authentication in App Router projects using redirection-based flows. Existing implementations require excessive boilerplate, manual session management, and understanding of IAM-specific terminology.
Describe the solution you would prefer
Develop an initial version of the @asgardeo/next SDK with support for redirection-based login/logout and include the following:
- 🔁 Redirection-based login and logout handlers
- 🍪 Built-in session management using HTTP-only cookies
- ⚛️ Drop-in React components:
<SignInButton /><SignOutButton /><SignedIn>{children}</SignedIn><SignedOut>{children}</SignedOut>
- 🧠
useAsgardeo()hook to access session and auth methods in client components - 🧩
asgardeoMiddlewarefor protecting routes via Next.js middleware, enabling auth guard patterns and automatic redirection
Additional context
This release will serve as the foundation for broader support including in-app login and server-side utilities. It aims to simplify integration, abstract IAM complexity, and offer an improved developer experience (DX).
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
@asgardeo/nextjsIssues related to the `Next.js` wrapper of Asgardeo JavaScript SDKIssues related to the `Next.js` wrapper of Asgardeo JavaScript SDKType/New Feature