Skip to content

Fix nextjs quickstart middleware pattern to use asgardeoMiddleware#456

Open
udanfernando2006 wants to merge 1 commit intoasgardeo:mainfrom
udanfernando2006:udanfernando2006/docs/fix-nextjs-quickstart-middleware
Open

Fix nextjs quickstart middleware pattern to use asgardeoMiddleware#456
udanfernando2006 wants to merge 1 commit intoasgardeo:mainfrom
udanfernando2006:udanfernando2006/docs/fix-nextjs-quickstart-middleware

Conversation

@udanfernando2006
Copy link
Copy Markdown

Summary

The QUICKSTART.md was using outdated API patterns (new AsgardeoNext()
with .middleware() method) that don't match the current SDK implementation.
This could confuse developers following the guide, as the code wouldn't work.

Updated to use the correct asgardeoMiddleware function exported from
@asgardeo/nextjs/server, which aligns with the official Asgardeo documentation.

Changes

  • Step 5: Updated middleware setup to use asgardeoMiddleware function
  • Step 10: Updated embedded login example to use correct API
  • Added Next.js 16 compatibility note

Why no changeset?

Documentation-only fix. No package code was modified. Per CONTRIBUTING.md,
documentation-only changes don't require changesets.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant