hendry.lim
KKinde
•Created by conkyyy on 10/3/2024 in #💻┃support
How to add subdomain auth flow for a multi tenant app?
hi all, i am facing a similar issue. I'm also trying to set up kinde auth for a multi tenant architecture. anyone managed to resolve this and can share soluion? Thanks
6 replies
KKinde
•Created by hendry.lim on 1/1/2025 in #💻┃support
Is it possible to get org code from the response after adding a organization via management api
you are a genius bro! you are right. i need to run json() to get the org code. thanks a lot. below is that portion of the code in case someone faces the same issue.
const output = await res.json(); console.log("output", output?.organization.code);
const output = await res.json(); console.log("output", output?.organization.code);
8 replies
KKinde
•Created by hendry.lim on 1/1/2025 in #💻┃support
Is it possible to get org code from the response after adding a organization via management api
res Response {
status: 200,
statusText: 'OK',
headers: Headers {
date: 'Thu, 02 Jan 2025 01:02:05 GMT',
'content-type': 'application/json; charset=utf-8',
'content-length': '82',
connection: 'keep-alive',
vary: 'Accept-Encoding'
},
body: ReadableStream { locked: false, state: 'readable', supportsBYOB: true },
bodyUsed: false,
ok: true,
redirected: false,
type: 'basic',
url: 'https://apps.kinde.com/api/v1/organization'
}
8 replies
KKinde
•Created by hendry.lim on 1/1/2025 in #💻┃support
Is it possible to get org code from the response after adding a organization via management api
const res = await fetch(url, {
method: "POST",
body: JSON.stringify({
name: company,
}),
headers: {
"Content-Type": "application/json",
Accept: "application/json",
Authorization:
Bearer ${accessToken}
,
},
});
console.log("res", res);8 replies
KKinde
•Created by hendry.lim on 1/1/2025 in #💻┃support
Is it possible to get org code from the response after adding a organization via management api
Thanks a lot Stephen. I get a 200 response but i don't see the org_code in the response. below is my code
8 replies