hey team, dod any of you integrated kratos with ne...
# talk-kratos
s
hey team, dod any of you integrated kratos with nextjs, using the app dir? I'm curious how to setup the catch all API route.
d
Hello @swift-island-66287, Have you try to read this blog post written by @high-optician-2097 ? https://www.ory.sh/nextjs-authentication-spa-custom-flows-open-source/
s
Yes this one is using the pages dir. my question is specifically about using kratos with the newest version of the next.js which uses the apps dir
d
I don't know more than that about Next.js, so I can't help you.
b
@swift-island-66287 A catch all api route within the app dir will be something like this
/app/api/auth/[...kratos]/route.ts
s
I’ve meant the implementation. Since the handler signature now it’s different
b
What do you mean?
s
The same implementation that used to work with the pages dir. don’t work with the apps dir. I created a pr in the integrations repo with my current tackle on this