# Verify remix auth0 session cookie on external api

**URL:** <https://community.auth0.com/t/verify-remix-auth0-session-cookie-on-external-api/151620>\
**Category:** Get Help\
**Tags:** authentication-sessions, sessions\
**Created:** [November 15, 2024, 6:45pm UTC](https://community.auth0.com/t/verify-remix-auth0-session-cookie-on-external-api/151620 "2024-11-15T18:45:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dennisborsh](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dennisborsh/32/59840_2.png) [@dennisborsh](https://community.auth0.com/u/dennisborsh)\
**Post date:** [November 15, 2024, 6:45pm UTC](https://community.auth0.com/t/verify-remix-auth0-session-cookie-on-external-api/151620/1 "2024-11-15T18:45:56Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![kosiakMD](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/kosiakmd/32/62998_2.png) [@kosiakMD](https://community.auth0.com/u/kosiakMD)\
**Post date:** [November 26, 2024, 11:58am UTC](https://community.auth0.com/t/verify-remix-auth0-session-cookie-on-external-api/151620/2 "2024-11-26T11:58:53Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![dennisborsh](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dennisborsh/32/59840_2.png) [@dennisborsh](https://community.auth0.com/u/dennisborsh)\
**Post date:** [November 26, 2024, 12:14pm UTC](https://community.auth0.com/t/verify-remix-auth0-session-cookie-on-external-api/151620/3 "2024-11-26T12:14:12Z")

</div>

> [@kosiakMD](#):
>
> import { parse } from ‘cookies

thanks, i eventually used cookie-signature for it

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [December 10, 2024, 12:14pm UTC](https://community.auth0.com/t/verify-remix-auth0-session-cookie-on-external-api/151620/4 "2024-12-10T12:14:56Z")

</div>

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