K
Kinde•5mo ago
warawiri

Sveltekit starter return errorCode: ''INVALID_TOKEN_MEMORY_COMIT"

Hi, i'm just new on Kinde and i create sveltkit project using Kinde starter kit. When i've signed up using Kinde in my sveltekit app, it return this KindeSDKError: Attempting to commit invalid access_token token "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOltdLCJpYXQiOjE3MDYxODIwNTIsImp0aSI6ImE3NzU0YjJiLTc2ZDEtNDQ4Ni04NDM3LTA5YmMyMDU1NzY5MCIsInNjcCI6WyJvcGVuaWQiLCJwcm9maWxlIiwiZW1haWwiLCJvZmZsaW5lIl19.nZY_8Om4_zbRCuZzVp_gi_MGGttveQB42iHhh31wmWUZ0Xq8eIzQtW37mBjGrfzDALqDgNblsbBvovMBxw2dSLa91J0Z5DXaDgJtNChkXGF8NbfJ8G-ezRu-f6NEOs8onmwv9T016-l9ydNbB0nhNGP-jI_QmStXadqxz29W-jK5pyDFv0OYmXM0X0DIel_JqjRSSkn2MImC22KYrqCO3SlC7LqwAjKpf0pBFCv0u_TAET0Sdb4FBtOi2aA5L8MHqzUjFgdS0QXOSlMYXTVUaiMz6hp1mfyTOpI1usxN5oGlzKicyQ-Ov9sHRlM38dH2ye8t11ZsIY7ZHk6kN04COQ" to memory at new KindeSDKError (file:///D:/Projects/sveltekit/sveltekit-starter-kit-main/node_modules/@kinde-oss/kinde-typescript-sdk/dist/sdk/exceptions.js:24:28) at step (file:///D:/Projects/sveltekit/sveltekit-starter-kit-main/node_modules/@kinde-oss/kinde-typescript-sdk/dist/sdk/utilities/token-utils.js:32:23) { errorCode: 'INVALID_TOKEN_MEMORY_COMMIT' } any idea about this issue? Thank you
4 Replies
onderay
onderay•5mo ago
Sorry @warawiri that you are seeing this issue. Let me check with the team to help troubleshoot.
Daniel_Kinde
Daniel_Kinde•5mo ago
Hi @warawiri I am picking this up from Andre. Could you give me some more details on your setup - What browser are you using? - Are you using username/password or a SSO connection? If SSO which connection are you using? This will help me find a solution to your issue. Thanks
warawiri
warawiri•5mo ago
Hi @Daniel_Kinde - i'm using Brave browser - i'm using username/password Hi @Daniel_Kinde i've solved the issue. the root cause is because i set KINDE_AUTH_WITH_PKCE=true when i change to KINDE_AUTH_WITH_PKCE=false then it works sorry for the trouble, stupid me 🙃
Daniel_Kinde
Daniel_Kinde•5mo ago
Great news @warawiri, that explains it!
I will make a note to update the error messaging around this. Thank you for letting me know, feel free to reach out if you have any further issues.
Want results from more Discord servers?
Add your server
More Posts
Is it possible to merge username & password fields into one page?Hi Kinde Team, is it possible to merge username and password fields into one page? My client don't wi want to make a api call with userId after a new user is registered how do I do that using nextjsI have next year 13 application with app directory. Now I want to make an API call whenever new user[NextJS 14] User session returns null in API route, when user is already authenticated from callerTrying to understand what I'm doing wrong here: I have a component that calls an api route on a butTrying to get the user session in server side Next.js v14 pages directory, always returns nullI'm pretty sure I might have screwed something up in the setup, but the docs for setting up the provCan the PKCE access token be used to authenticate/authorize requestsHi, I am currently using clerk with a chrome extension. I want to switch to a service that supportsSet up a Subscription form for Nextjs App.I am using kinde to set up a subscription form to build a waitlist and generate interest on the landNeed help with roles (setPermission(s), setRole(s))Hey. I want to programmatically set roles/permissions for users, is this in any way possible, or sFirebase auth with Kinde. for firebase storage to write security accessI wanted to use firebase and its security policy for a production application. and inorder to do thaJava SDK Support for Spring Boot 3Hey, a few days back I've created this issue on GitHub - https://github.com/kinde-oss/kinde-java-sdTypescript SDK middleware route handling.Building a project using fresh.deno and Kindes Typescript SDK. Have it setup, with pretty basic impl