9M6
9M6
Explore posts from servers
CDCloudflare Developers
Created by 9M6 on 5/25/2024 in #workers-help
Invalid credentials. even though I pass the Bearer
(log) onRequest {
request: '/users/token',
options: {
baseURL: 'https://api.domain.com/v1',
headers: {
Authorization: 'Bearer api-key'
},
method: 'POST',
body: { userId: 'org_588efe165d1d6' }
}
(log) onRequest {
request: '/users/token',
options: {
baseURL: 'https://api.domain.com/v1',
headers: {
Authorization: 'Bearer api-key'
},
method: 'POST',
body: { userId: 'org_588efe165d1d6' }
}
3 replies
CDCloudflare Developers
Created by 9M6 on 5/25/2024 in #workers-help
Invalid credentials. even though I pass the Bearer
response: { _data: { code: 401, message: 'Invalid credentials.' } }
response: { _data: { code: 401, message: 'Invalid credentials.' } }
3 replies
KKinde
Created by 9M6 on 5/17/2024 in #💻┃support
Details Update Propagation takes too much time
@Daniel_Kinde is there some kind of debug functionality in the library to log the request?
9 replies
KKinde
Created by 9M6 on 5/17/2024 in #💻┃support
Details Update Propagation takes too much time
I'll try to investigate since this happens randomly. On my nuxt app the error is thrown in organisation component.
9 replies
KKinde
Created by 9M6 on 5/17/2024 in #💻┃support
Details Update Propagation takes too much time
hey @Daniel_Kinde I'm getting these errors randomly when I use management api
✔ Nitro Server built in 371 ms nitro 4:07:01 PM
[nitro] [request error] [unhandled] fetch failed
at Object.fetch (node:internal/deps/undici/undici:11730:11)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async At (./node_modules/.pnpm/@kinde+management-api-js@0.6.0/node_modules/@kinde/management-api-js/dist/kinde-management-api-js.cjs:1:22800)
at async ./node_modules/.pnpm/@kinde+management-api-js@0.6.0/node_modules/@kinde/management-api-js/dist/kinde-management-api-js.cjs:1:24659
[nitro] [request error] [unhandled] fetch failed
at Object.fetch (node:internal/deps/undici/undici:11730:11)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async At (./node_modules/.pnpm/@kinde+management-api-js@0.6.0/node_modules/@kinde/management-api-js/dist/kinde-management-api-js.cjs:1:22800)
at async ./node_modules/.pnpm/@kinde+management-api-js@0.6.0/node_modules/@kinde/management-api-js/dist/kinde-management-api-js.cjs:1:24659
[nitro] [request error] [unhandled] fetch failed
at Object.fetch (node:internal/deps/undici/undici:11730:11)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async At (./node_modules/.pnpm/@kinde+management-api-js@0.6.0/node_modules/@kinde/management-api-js/dist/kinde-management-api-js.cjs:1:22800)
at async ./node_modules/.pnpm/@kinde+management-api-js@0.6.0/node_modules/@kinde/management-api-js/dist/kinde-management-api-js.cjs:1:24659
✔ Nitro Server built in 371 ms nitro 4:07:01 PM
[nitro] [request error] [unhandled] fetch failed
at Object.fetch (node:internal/deps/undici/undici:11730:11)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async At (./node_modules/.pnpm/@kinde+management-api-js@0.6.0/node_modules/@kinde/management-api-js/dist/kinde-management-api-js.cjs:1:22800)
at async ./node_modules/.pnpm/@kinde+management-api-js@0.6.0/node_modules/@kinde/management-api-js/dist/kinde-management-api-js.cjs:1:24659
[nitro] [request error] [unhandled] fetch failed
at Object.fetch (node:internal/deps/undici/undici:11730:11)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async At (./node_modules/.pnpm/@kinde+management-api-js@0.6.0/node_modules/@kinde/management-api-js/dist/kinde-management-api-js.cjs:1:22800)
at async ./node_modules/.pnpm/@kinde+management-api-js@0.6.0/node_modules/@kinde/management-api-js/dist/kinde-management-api-js.cjs:1:24659
[nitro] [request error] [unhandled] fetch failed
at Object.fetch (node:internal/deps/undici/undici:11730:11)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async At (./node_modules/.pnpm/@kinde+management-api-js@0.6.0/node_modules/@kinde/management-api-js/dist/kinde-management-api-js.cjs:1:22800)
at async ./node_modules/.pnpm/@kinde+management-api-js@0.6.0/node_modules/@kinde/management-api-js/dist/kinde-management-api-js.cjs:1:24659
9 replies
KKinde
Created by 9M6 on 5/17/2024 in #💻┃support
Details Update Propagation takes too much time
9 replies
KKinde
Created by 9M6 on 5/17/2024 in #💻┃support
Details Update Propagation takes too much time
Hey @Oli - Kinde I'm using the new Management API SDK
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 tried and works on my side, I also deployed my app on couldflare using my repo in the package manager
41 replies
KKinde
Created by 9M6 on 5/14/2024 in #💻┃support
kindeClient.getUserOrganizations() its returning Compact JWS must be a string or Uint8Array
Hey @Daniel_Kinde managed to look into this?
41 replies
KKinde
Created by Miguel on 5/17/2024 in #💻┃support
How to get the token in Nuxt?
Hey @Miguel works only on server side and ssr https://github.com/nuxt-modules/kinde/blob/main/src/runtime/server/utils/client.ts you should write your own server/api/token.get.ts endpoint in your nuxt with the client.
7 replies
KKinde
Created by 9M6 on 5/14/2024 in #💻┃support
kindeClient.getUserOrganizations() its returning Compact JWS must be a string or Uint8Array
@Daniel_Kinde sent a PR with the changes https://github.com/kinde-oss/management-api-js/pull/8
41 replies
KKinde
Created by 9M6 on 5/14/2024 in #💻┃support
kindeClient.getUserOrganizations() its returning Compact JWS must be a string or Uint8Array
Hey @Daniel_Kinde how to set the config during runtime? I'm using cloudflare pages, and .env are only set during the execution. if I just replicated/modified on my nitro app, the index.js with the config.js file in kinde-management-api, will it work? Any way of setting the Auth Domain, Client Id, and Client Secret?
41 replies
KKinde
Created by 9M6 on 5/14/2024 in #💻┃support
kindeClient.getUserOrganizations() its returning Compact JWS must be a string or Uint8Array
@Daniel_Kinde is there any method in the libraries where I can check the JWT token against the jwksendpoint? I saw some utility functions in the typescript libary but not sure if they're exported or for public access?
41 replies
KKinde
Created by 9M6 on 5/14/2024 in #💻┃support
kindeClient.getUserOrganizations() its returning Compact JWS must be a string or Uint8Array
Seems getUserData did the trick
41 replies
KKinde
Created by 9M6 on 5/14/2024 in #💻┃support
kindeClient.getUserOrganizations() its returning Compact JWS must be a string or Uint8Array
@Daniel_Kinde its returning only these props, but no organisation:
{
"code": "OK",
"message": "Success",
"properties": [
{
"id": "prop_018cc8f82e76373302a51e3f3d26832a",
"key": "kp_usr_city",
"name": "City",
"value": null,
"description": null
},
{
"id": "prop_018cc8f82e765da58f806a4f2aa9c4b2",
"key": "kp_usr_industry",
"name": "Industry",
"value": null,
"description": null
},
{
"id": "prop_018cc8f82e76634b92b47af3f8a49666",
"key": "kp_usr_job_title",
"name": "Job title",
"value": null,
"description": null
},
{
"id": "prop_018cc8f82e76039994fdd4152dc5263f",
"key": "kp_usr_middle_name",
"name": "Middle name",
"value": null,
"description": null
},
{
"id": "prop_018cc8f82e76b6353574040fcf18a890",
"key": "kp_usr_postcode",
"name": "Postcode",
"value": null,
"description": null
},
{
"id": "prop_018cc8f82e76d09ff3612f6610741a5e",
"key": "kp_usr_salutation",
"name": "Salutation",
"value": null,
"description": null
},
{
"id": "prop_018cc8f82e762987ee83dda047e08c4d",
"key": "kp_usr_state_region",
"name": "State/Region",
"value": null,
"description": null
},
{
"id": "prop_018cc8f82e76a55c295d1a4b98b6b423",
"key": "kp_usr_street_address",
"name": "Street Address",
"value": null,
"description": null
},
{
"id": "prop_018cc8f82e7659a947dd11558691ab94",
"key": "kp_usr_street_address_2",
"name": "Street Address line 2",
"value": null,
"description": null
}
]
}
{
"code": "OK",
"message": "Success",
"properties": [
{
"id": "prop_018cc8f82e76373302a51e3f3d26832a",
"key": "kp_usr_city",
"name": "City",
"value": null,
"description": null
},
{
"id": "prop_018cc8f82e765da58f806a4f2aa9c4b2",
"key": "kp_usr_industry",
"name": "Industry",
"value": null,
"description": null
},
{
"id": "prop_018cc8f82e76634b92b47af3f8a49666",
"key": "kp_usr_job_title",
"name": "Job title",
"value": null,
"description": null
},
{
"id": "prop_018cc8f82e76039994fdd4152dc5263f",
"key": "kp_usr_middle_name",
"name": "Middle name",
"value": null,
"description": null
},
{
"id": "prop_018cc8f82e76b6353574040fcf18a890",
"key": "kp_usr_postcode",
"name": "Postcode",
"value": null,
"description": null
},
{
"id": "prop_018cc8f82e76d09ff3612f6610741a5e",
"key": "kp_usr_salutation",
"name": "Salutation",
"value": null,
"description": null
},
{
"id": "prop_018cc8f82e762987ee83dda047e08c4d",
"key": "kp_usr_state_region",
"name": "State/Region",
"value": null,
"description": null
},
{
"id": "prop_018cc8f82e76a55c295d1a4b98b6b423",
"key": "kp_usr_street_address",
"name": "Street Address",
"value": null,
"description": null
},
{
"id": "prop_018cc8f82e7659a947dd11558691ab94",
"key": "kp_usr_street_address_2",
"name": "Street Address line 2",
"value": null,
"description": null
}
]
}
41 replies
KKinde
Created by 9M6 on 5/14/2024 in #💻┃support
kindeClient.getUserOrganizations() its returning Compact JWS must be a string or Uint8Array
@Daniel_Kinde it seems the only way to get additional details on the user is to use JWT tokens, and not any API. (Took me a while to understand this 😓 )
41 replies
KKinde
Created by 9M6 on 5/14/2024 in #💻┃support
kindeClient.getUserOrganizations() its returning Compact JWS must be a string or Uint8Array
@Daniel_Kinde switched to the new SDK, looks nice, but would be very nice if the init() function had a config parameter to pass down the env (automatically inferring the values from env variables is good too but the config will allow more customization) Also why there's is not any filtering capabilities for the endpoints. Example getOrganisations, would be nice to have a userId in there to filter based on that. Otherwise I would have to paginate through all orgs to filter it.
41 replies
KKinde
Created by 9M6 on 5/14/2024 in #💻┃support
kindeClient.getUserOrganizations() its returning Compact JWS must be a string or Uint8Array
The same implementation on nuxt-kinde
41 replies
KKinde
Created by 9M6 on 5/14/2024 in #💻┃support
kindeClient.getUserOrganizations() its returning Compact JWS must be a string or Uint8Array
I'm using GrantType.AUTHORIZATION_CODE
41 replies