# Issue with express-oauth2-jwt-bearer

**URL:** <https://community.auth0.com/t/issue-with-express-oauth2-jwt-bearer/119104>\
**Category:** JWT.io\
**Created:** [October 22, 2023, 4:46pm UTC](https://community.auth0.com/t/issue-with-express-oauth2-jwt-bearer/119104 "2023-10-22T16:46:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ryanloh29](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ryanloh29/32/51871_2.png) [@ryanloh29](https://community.auth0.com/u/ryanloh29)\
**Post date:** [October 22, 2023, 4:46pm UTC](https://community.auth0.com/t/issue-with-express-oauth2-jwt-bearer/119104/1 "2023-10-22T16:46:42Z")

</div>

I followed the tutorial at [Auth0 Node (Express) API SDK Quickstarts: Authorization](https://auth0.com/docs/quickstart/backend/nodejs/01-authorization)  
and created the middleware

```auto
const checkJwt = auth({
  audience: process.env.AUDIENCE_ID,
  issuerBaseURL: process.env.ISSUER_BASE_URL,
});

```

However, I get the error AssertionError: You must provide a ‘tokenSigningAlg’ for validating symmetric algorithms.  
However, I am trying to validate the RS256 tokens that were created on the auth0 dashboard.

Any help would be much appreciated. Thanks

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [October 27, 2023, 3:10pm UTC](https://community.auth0.com/t/issue-with-express-oauth2-jwt-bearer/119104/3 "2023-10-27T15:10:59Z")

</div>

Hi @ryanloh29,

Welcome to the Auth0 Community!

That code snippet is working okay for me. Do you have some additional info you could share? More code from your implementation?

---

<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:** [November 10, 2023, 3:11pm UTC](https://community.auth0.com/t/issue-with-express-oauth2-jwt-bearer/119104/4 "2023-11-10T15:11:18Z")

</div>

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