bitter-boots-57989
12/04/2022, 7:43 AMlet sdk = new V0alpha2Api(
new Configuration({
basePath: '<http://127.0.0.1:4434>',
// accessToken: "Your Ory Cloud API Key / Personal Access Token"
}),
)
am i doing correctly or should i do develop my own sdk to connect to locally hosted kratos.. kindly help..rough-energy-65470
12/04/2022, 11:06 PMimport getConfig from "next/config";
const getKratosOptions = () => {
const { serverRuntimeConfig } = getConfig();
return {
baseURL: serverRuntimeConfig.BASE_URL,
};
};
// then you can see we passed it into the options parameter
await ory.submitSelfServiceLoginFlow(flowId, undefined, values, getKratosOptions());
rough-energy-65470
12/04/2022, 11:07 PMworried-kitchen-94392
12/05/2022, 8:35 AM