undefined access_token when using session manager with typescript SDK
Hi all! I'm having trouble calling my API in a NextJS Hono server monorepo. I'm wanting to call an API and check for auth but eaverytime I do my server throws a 500 as the access_token from Kinde is undefined in the session manager.
Here is my session manager code:
when I console log the getCookie result I get an undefined, but it is defined when setting it. Not sure if my implementation is correct or not. Any help is appreciated. Thanks.
4 Replies
yeah! Unfortunately I'm going to have to move away from Kinde as it is too faulty and teh support is lacking. Thanks for your reply though.
Hi @Shampurrrs Sorry to hear you've had issues. We would welcome specific feedback about your experience and how we could improve it. We pride ourselves on offering pretty great support to paid AND free plan customers, so would be great undeerstand where we let you down.
Hi! It's just the generic responses that mimic the documentation I have looked at, it's telling me things I already know and it feels like i't not worth the time to give support. Too be fair I am using a free plan currently and I am not a very good dev, so maybe it isn't worth supports time. Cheers.
Hi Sam. if I run this code where I am logging the result of the session.
my session is undefined, then has a result then becomes undefined again.
I am using Hono for the cookie functions, maybe Kinde is just not meant to work with Hono?
Thanks for adding that info - when you say "it" do you mean KindeAI? It is reading the docs and is trained to give responses from there. In all other channels, you'll get a human.