You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a setup where there's a Next.js frontend communicating with a REST database backend API written in Express.js, with a credential provider as the authentication. It's a really odd setup, but this is the constraint that I have to live with.
So on the Next.js side I have something like this:
It seems to work. But now I want the Express.js backend to verify if the user have logged in, for specific routes. Is there a way to verify the session token from the Express.js side?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have a setup where there's a Next.js frontend communicating with a REST database backend API written in Express.js, with a credential provider as the authentication. It's a really odd setup, but this is the constraint that I have to live with.
So on the Next.js side I have something like this:
It seems to work. But now I want the Express.js backend to verify if the user have logged in, for specific routes. Is there a way to verify the session token from the Express.js side?
Beta Was this translation helpful? Give feedback.
All reactions