kinde-oss / kinde-auth-nextjs

Kinde NextJS SDK - authentication for server rendered apps
https://docs.kinde.com/developer-tools/sdks/backend/nextjs-sdk/
MIT License
155 stars 22 forks source link

Documentation issue: chaining middleware with next #40

Open rogueturnip opened 1 year ago

rogueturnip commented 1 year ago

Prerequisites

How can we improve the docs or what is missing?

I'm setting up Kinde for the first time and I need to have a few other middleware along with the include authMiddleware. I've looked through docs and other areas and can't find an example on how to do this.

I've done this setup before following https://reacthustle.com/blog/how-to-chain-multiple-middleware-functions-in-nextjs as an example how to chain middleware but when I do this option I get an error back from the authMiddleware.

Is there any guidance that could be given? It should would be handy to have an example in the documentation.

Provide extra context, such as what you were trying to do and your requirements

Trying to use multiple middleware in NextJS

If the docs page already exists, please provide a link

No response

DaveOrDead commented 1 year ago

Hey @rogueturnip thanks for the issue, we'll take a look into this asap

isakfagerlund commented 6 months ago

Any updates on this issue?