supertokens / supertokens-core

Open source alternative to Auth0 / Firebase Auth / AWS Cognito
https://supertokens.com
Other
13.16k stars 522 forks source link

I need boilerplate supertokens docs implementation on NEXTJS13 (use app dir) #644

Closed syukranDev closed 1 year ago

syukranDev commented 1 year ago

📚 Documentation

As per issue subject, I tried implemented supertoken implemented in NEXTJS13 using old supertokens nextJS12 but it was unsuccessful attempt.

Anybody have any template in their Git on implementing Supertoken in new NEXTJS13 (the one that use app DIR), please share one.

Much appreciated <3

rishabhpoddar commented 1 year ago

Hey @syukranDev - i just tried our nextjs demo app (using next13 with old next12 structure). This does not use the app directory, but it does work.

We will be making changes to support the app directory very soon, but until then, try out of demo app using npx create-supertokens-app@latest.

For now, i am closing this issue cause it's a duplicate of https://github.com/supertokens/supertokens-auth-react/issues/669

syukranDev commented 1 year ago

Might as well update your docs to not use in next13 with app dir, its brutally confusing.

rishabhpoddar commented 1 year ago

Might as well update your docs to not use in next13 with app dir, its brutally confusing.

Fair enough