9M6
9M6
Explore posts from servers
KKinde
Created by 9M6 on 5/17/2024 in #💻┃support
Details Update Propagation takes too much time
Hello, I've noticed an issue, when I update an organisation (org name), and right after I do a fetch, the endpoint (management api) returns the old name, but when I call it after 1-2 seconds it returns the correct name. Is this latency common with all the APIs?
9 replies
KKinde
Created by 9M6 on 5/14/2024 in #💻┃support
kindeClient.getUserOrganizations() its returning Compact JWS must be a string or Uint8Array
I am getting an error when fetching: kindeClient.getUserOrganizations() its returning Compact JWS must be a string or Uint8Array, but when I fetch other functions works correctly any idea why this might happen? My setup is Nuxt+NitroJS (nodejs) I have setup: 1. M2M to fetch tokens to make endpoint api calls 2. Copy/Pasted the nuxt-kinde server/ code to my nitro app Tried asking KindeAI, but to no avail.
41 replies
KKinde
Created by 9M6 on 5/13/2024 in #💻┃support
When requesting /oauth2/token, does the endpoint returns the same token or issues a new one?
Quick question, when doing M2M api calls, and trying to fetch the oauth2/token from kinde, does the endpoint returns the same token until expiry or issues a new one? Do I need to locally save the token until expiry or its safe to call the endpoint multiple times without worries?
3 replies
KKinde
Created by 9M6 on 5/13/2024 in #💻┃support
How do you update user details from own-app?
Hello, As the title says, how does one update the user details from the app, not from kinde (manually), there's no information regarding this. How to update: - name - Last name - Extra informations - Change 2FA/Password etc? Thank you in advance.
3 replies
KKinde
Created by 9M6 on 5/11/2024 in #💻┃support
Nuxt useKindeClient not working properly
Hello, I'm trying to use Kinde with Nuxt, the module is quite barebones and doesnt seem to support all things, a few things I want to do: 1. Custom Sign In / Sign Up 2. useKindeClient does not work both on server/api/auth/login.ts as an api route, neither in any of the components on part of the tutorials I see:
const client = useKindeClient();

const {data: permissions} = await useAsyncData(async () => {
const {permissions} = (await client?.getPermissions()) ?? {};
return permissions;
});
// { orgCode: 'org_1234', permissions: ['create:todos', 'update:todos', 'read:todos'] }

const {data: hasAccess} = await useAsyncData(async () => {
return (await client?.getPermission("create:todos")) ?? {};
});
// { orgCode: 'org_1234', isGranted: true }
const client = useKindeClient();

const {data: permissions} = await useAsyncData(async () => {
const {permissions} = (await client?.getPermissions()) ?? {};
return permissions;
});
// { orgCode: 'org_1234', permissions: ['create:todos', 'update:todos', 'read:todos'] }

const {data: hasAccess} = await useAsyncData(async () => {
return (await client?.getPermission("create:todos")) ?? {};
});
// { orgCode: 'org_1234', isGranted: true }
but this code does not specify where this should run, backend or frontend, frontend wise does not run; and I cant try on the backend since it does not import useKindeClient (auto-imports any help appreciated.
4 replies