Skip to content

feat: new @asgardeo/next SDK with basic re-direction based capabilities & components #61

@brionmario

Description

@brionmario

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
  • 🧩 asgardeoMiddleware for 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).

Metadata

Metadata

Assignees

Labels

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

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions