KindeK
Kinde3y ago
78 replies
alex

Help Needed: Authentication strategy for authenticating access to a backend express API from NextJs

Currently we are doing this in a very scuffed way by copying the authentication token from the kinde-token cookie to another cookie that is accessible via any of our subdomains.

Does anyone have any suggestions on how we can make this work in a less scuffed way?

We are also having issues with tokens refreshing. I am finding a lot of JWT expired errors while devving and am required to re-sign in rather than the token automatically refreshing after x minutes.
image.png
Was this page helpful?