Verify remix auth0 session cookie on external api

Hello All

it is possible to read an Auth0 session cookie in an Nestjs/Express application. I am generating this cookie via a Remix.js application using the remix-auth-auth0 lib and am able to read it in the app using the built in getSession method provided by the library.

Now want to call an external API that I have built in nestjs and am having a hard time verifying the session cookie.

Is there a library that I can use to be able to verify an existing Auth0 session cookie? or is there any way to validate a user through the cookie in nest/express app?

just to clarify i want to avoid going threw remix routing mechanism for retrieving accesses token.

Thanks for the help.

1 Like

I have the same issue
m.b. import { parse } from ‘cookies’; - included in remix-run/node, can help you

thanks, i eventually used cookie-signature for it

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.