daun
daun•16mo ago

Can I get a help for getting

Can I get a help for getting authentication correct using Auth0+Next.js app directory (layout.ts)? https://discord.com/channels/1019350475847499849/1176044887238524992/1176044887238524992
4 Replies
daun
daunOP•16mo ago
I've also tried implementing server-side convex function but it also fails to get user identity.
Michal Srb
Michal Srb•16mo ago
Hey @daun , you can follow the Next.js quickstart: https://docs.convex.dev/quickstart/nextjs and then the Auth0 quick start: https://docs.convex.dev/auth/auth0#get-started Note that this does NOT use the Auth0 next.js SDK, just the standard React one. This is the easiest set up.
Next.js Quickstart | Convex Developer Hub
Add Convex to a Next.js project
Convex Auth0 | Convex Developer Hub
Auth0 is an authentication platform providing login via
daun
daunOP•16mo ago
Thanks. I actually looked up both and wonder if it is really possible to use auth0 (react lib) with next.js + convex reliably. There's also doc pointing React + next.js + auth0 combination (https://docs.convex.dev/client/react/nextjs) however the app/ConvexClientProvider.tsx seems not working.
Next.js | Convex Developer Hub
How Convex works in a Next.js app
daun
daunOP•16mo ago
After few more hours of struggle, I've figured out this was the problem of auth0 configuration. (it was not properly issueing refresh token) Thanks for the support anyway 🙂

Did you find this page helpful?