Validate Access Token In Remix

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.

Hi @Alien10,

Thanks for reaching out to the Auth0 Community!

First, to validate access tokens, you can use the access token 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 for verification and decode the token to verify if the user has the correct permissions (scopes). Similarly with checking the token’s audience claims.

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

Thank you.

1 Like

Thanks, that worked :+1: .

1 Like

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