# Validate Access Token In Remix

**URL:** <https://community.auth0.com/t/validate-access-token-in-remix/77086>\
**Category:** JWT.io\
**Created:** [January 26, 2022, 11:03pm UTC](https://community.auth0.com/t/validate-access-token-in-remix/77086 "2022-01-26T23:03:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alien10](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/alien10/32/33223_2.png) [@Alien10](https://community.auth0.com/u/Alien10)\
**Post date:** [January 26, 2022, 11:03pm UTC](https://community.auth0.com/t/validate-access-token-in-remix/77086/1 "2022-01-26T23:03:47Z")

</div>

Hi,  
I want to make an endpoint that can only be accessed by logged in users so I want to validate a access token, but I can not do it in express because I am using cloudflare page (that uses cloudflare workers for serverless funcion). Is there a api or sdk that I can do this in?  
Thanks.

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [January 27, 2022, 12:39am UTC](https://community.auth0.com/t/validate-access-token-in-remix/77086/3 "2022-01-27T00:39:29Z")

</div>

Hi @Alien10,

Thanks for reaching out to the Auth0 Community!

First, to validate access tokens, you can [use the access token](https://auth0.com/docs/api/authentication#user-profile) to see if it grants them access, otherwise, the access token can be considered invalid.

You could also use one of the [JSON Web Token Libraries - jwt.io](https://jwt.io/libraries) for verification and decode the token to verify if the user has the correct permissions (scopes). Similarly with checking the token’s audience claims.

> **[Validate Access Tokens](https://auth0.com/docs/secure/tokens/access-tokens/validate-access-tokens)**
>
> Describes how to validate an access token.

Please let me know if you need additional clarification or have any questions.

Thank you.

---

<div class="post-metadata">

**Author:** ![Alien10](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/alien10/32/33223_2.png) [@Alien10](https://community.auth0.com/u/Alien10)\
**Post date:** [January 27, 2022, 9:08am UTC](https://community.auth0.com/t/validate-access-token-in-remix/77086/4 "2022-01-27T09:08:52Z")

</div>

Thanks, that worked 👍 .

---

<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:** [February 11, 2022, 11:43am UTC](https://community.auth0.com/t/validate-access-token-in-remix/77086/6 "2022-02-11T11:43:55Z")

</div>

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