Welcome to the Kinde community

Updated 4 months ago

ExpressJS, redirectURL redirects to siteURL

I'm trying to set up authentication in an expressjs api, and have followed the docs from kinde. When i go to localhost:3001/login or /register i can succesfully login but then i get redirected to KINDE_SITE_URL, and not to KINDE_REDIRECT_URL. The endpoint for KINDE_REDIRECT_URL is /api/usuarios/obtenerToken where i just receive the user and session objects to show the access token in screen and then use it in further requests. The problem is that even when even i just type localhost:3001/api/usuarios/obtenerToken i get redirected automatically to my KINDE_SITE_URL. I dont know why that happens or if i set up something wrong. Am using kinde-node-express 1.6.0. So in short, the main problem is that no matter how i GET api/usuarios/obtenerToken (REDIRECT_URL), i get redirected to /api-docs (SITE_URL), even if manually doing the request, and not after a login/register
Attachments
image.png
image.png
D
1 comment
Hi, Could you raise an issue please on the github repo (https://github.com/kinde-oss/kinde-node-express) and will get this check out.
Add a reply
Sign up and join the conversation on Discord