# \#express-openid-connect

**URL:** https://community.auth0.com/tag/express-openid-connect/2072.md

[Latest](https://community.auth0.com/latest.md) · [Categories](https://community.auth0.com/categories.md) · [Tags](https://community.auth0.com/tags.md)

---

## [CORS error when using express-openid-connect](https://community.auth0.com/t/cors-error-when-using-express-openid-connect/151469)

<div class="topic-metadata">

**Author:** [@kallurict](https://community.auth0.com/u/kallurict)\
**Replies:** 1\
**Last updated:** [November 13, 2024, 10:55pm UTC](https://community.auth0.com/t/cors-error-when-using-express-openid-connect/151469 "2024-11-13T22:55:17Z")

</div>

I’m currently working on implementing an OAuth flow that involves calling a POST API at http://localhost:3000/authenticate/email, which subsequently triggers res.idc.login(). However, I’m encountering a CORS error when t…

---

## [Express-openid-connect two different “instances” based on the a condition in the request](https://community.auth0.com/t/express-openid-connect-two-different-instances-based-on-the-a-condition-in-the-request/122161)

<div class="topic-metadata">

**Author:** [@user-bks](https://community.auth0.com/u/user-bks)\
**Replies:** 3\
**Last updated:** [December 11, 2023, 4:06pm UTC](https://community.auth0.com/t/express-openid-connect-two-different-instances-based-on-the-a-condition-in-the-request/122161 "2023-12-11T16:06:27Z")

</div>

Hello, I have a problem, I don’t know if this is the right place or format to ask but it would be very greatfull if you could help me. I need two different “instances” based on the a condition in the request. Since oi…

---

## [BadRequestError: failed to decode JWT (TypeError: encrypted JWTs cannot be decoded)](https://community.auth0.com/t/badrequesterror-failed-to-decode-jwt-typeerror-encrypted-jwts-cannot-be-decoded/97949)

<div class="topic-metadata">

**Author:** [@Chogster](https://community.auth0.com/u/Chogster)\
**Replies:** 1\
**Last updated:** [January 20, 2023, 8:39pm UTC](https://community.auth0.com/t/badrequesterror-failed-to-decode-jwt-typeerror-encrypted-jwts-cannot-be-decoded/97949 "2023-01-20T20:39:30Z")

</div>

I am using express-openid-connect library, and I am receiving BadRequestError: failed to decode JWT (TypeError: encrypted JWTs cannot be decoded) when redirected back after a successful auth. The token is a JWE, and I’m …

---

## [JWT malformed from Vue SPA using auth0-spa-js library](https://community.auth0.com/t/jwt-malformed-from-vue-spa-using-auth0-spa-js-library/94643)

<div class="topic-metadata">

**Author:** [@kristen-s](https://community.auth0.com/u/kristen-s)\
**Replies:** 5\
**Last updated:** [November 22, 2022, 4:32am UTC](https://community.auth0.com/t/jwt-malformed-from-vue-spa-using-auth0-spa-js-library/94643 "2022-11-22T04:32:23Z")

</div>

The JWT submitted from our client app to Express server is malformed. When I paste it into the debugger at jwt.io, the payload is empty because the first dot-separation is a double dot. The token is 490 chars total. ~he…
