K
Kinde5mo ago
GonzaP

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
No description
No description
1 Reply
Daniel_Kinde
Daniel_Kinde5mo ago
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.
GitHub
GitHub - kinde-oss/kinde-node-express: Kinde SDK for ExpressJS apps...
Kinde SDK for ExpressJS apps that run on the server - kinde-oss/kinde-node-express
Want results from more Discord servers?
Add your server