Hi guys, first of all, thanks for the amazing proj...
# talk-kratos
q
Hi guys, first of all, thanks for the amazing project! I was reading through the blog post about React Native and saw that there is a part two coming — when should we expect this? I also had another question about this. Say I have a Next.js app (following the self service example) alongside my React Native app, would it make sense to use the Next.js’ API (
/api/.ory/[…paths]
) for the React Native app as well, or should the API be moved to e.g. a Node app which is then used by both the Next.js app and RN app instead?
h
For the native app you can use kratos directly, or the proxy URL - both work :) Second part is still to be worked on 😅
q
I’ve only been trying out Kratos for 2 days or so, so correct me if I’m wrong: I am using the Next.js app in a monorepo, so since I’m initialising the client like so
Copy code
import { edgeConfig } from "@ory/integrations/next";
import { Configuration, V0alpha2Api } from "@ory/kratos-client";

export const ory = new V0alpha2Api(new Configuration(edgeConfig));
I am guessing that if I add a React Native app I will have to initialise it differently — and instead of using
/api/.ory
as
basePath
, I can use the URL from port forwarding the Kratos Docker Image directly? If that is the case, why is the same not done with the Next.js example and do we have the
/api/.ory/[…paths]
route? Sorry I am a bit confused 😛
h
Yes, exactly 🙂 You can use both in fact!