# \#express

**URL:** https://community.auth0.com/tag/express/366.md

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

---

## [Update and delete user profile with Auth0 (React + express)](https://community.auth0.com/t/update-and-delete-user-profile-with-auth0-react-express/84223)

<div class="topic-metadata">

**Author:** [@marta.elisabet](https://community.auth0.com/u/marta.elisabet)\
**Replies:** 2\
**Last updated:** [October 21, 2024, 11:30pm UTC](https://community.auth0.com/t/update-and-delete-user-profile-with-auth0-react-express/84223 "2024-10-21T23:30:29Z")

</div>

Hi! I’m building a webpage with React frontend and Express backend for an advanced web programming course in school. I’ve used Auth0 for login/logout and followed the Auth0providerwithhistory guide (Redirecting...) and t…

---

## [CORS issues with /authorize](https://community.auth0.com/t/cors-issues-with-authorize/90667)

<div class="topic-metadata">

**Author:** [@yaacov](https://community.auth0.com/u/yaacov)\
**Replies:** 3\
**Last updated:** [September 6, 2023, 11:18pm UTC](https://community.auth0.com/t/cors-issues-with-authorize/90667 "2023-09-06T23:18:55Z")

</div>

Hi, I am attempting to set up an auth0 integration with node.js backend and next.js frontend. The node backend uses the express-openid-connect library. When encountering a logged-out user, the node server redirects the…

---

## [Correlation of the appSession cookie expiration and the Auth0 Server Side session](https://community.auth0.com/t/correlation-of-the-appsession-cookie-expiration-and-the-auth0-server-side-session/91738)

<div class="topic-metadata">

**Author:** [@parisapostolopoulos](https://community.auth0.com/u/parisapostolopoulos)\
**Replies:** 1\
**Last updated:** [October 4, 2022, 1:26pm UTC](https://community.auth0.com/t/correlation-of-the-appsession-cookie-expiration-and-the-auth0-server-side-session/91738 "2022-10-04T13:26:55Z")

</div>

Hello, I have a basic question, I guess is mostly around understanding and verifying certain aspects of our implementation. I am using the express open id connect - GitHub - auth0/express-openid-connect: An Express.js m…

---

## [How to use express-oauth2-jwt-bearer with Apollo-server and graphql?](https://community.auth0.com/t/how-to-use-express-oauth2-jwt-bearer-with-apollo-server-and-graphql/85966)

<div class="topic-metadata">

**Author:** [@marclovesjazz](https://community.auth0.com/u/marclovesjazz)\
**Replies:** 2\
**Last updated:** [July 1, 2022, 9:24am UTC](https://community.auth0.com/t/how-to-use-express-oauth2-jwt-bearer-with-apollo-server-and-graphql/85966 "2022-07-01T09:24:33Z")

</div>

Hi, I want to secure my API server (nodejs/apollo-server-express 3.x/graphql) and tried to use the recently published express-oauth2-jwt-bearer SDK from Auth0. Authentication seems to be working fine but when it comes …

---

## [Configure multiple API's for the same client](https://community.auth0.com/t/configure-multiple-apis-for-the-same-client/60881)

<div class="topic-metadata">

**Author:** [@muhammad.salman](https://community.auth0.com/u/muhammad.salman)\
**Replies:** 3\
**Last updated:** [February 8, 2022, 2:09pm UTC](https://community.auth0.com/t/configure-multiple-apis-for-the-same-client/60881 "2022-02-08T14:09:18Z")

</div>

Hi I am using express-openid-connect and am trying to have different middleware config based on the protected API server I want to call. Trying to do that gives me an Error: req\[appSession\] is already set, did you run…

---

## [Option sameSite is invalid - Auth0 express quickstart](https://community.auth0.com/t/option-samesite-is-invalid-auth0-express-quickstart/64691)

<div class="topic-metadata">

**Author:** [@kevina](https://community.auth0.com/u/kevina)\
**Replies:** 6\
**Last updated:** [February 7, 2022, 12:17pm UTC](https://community.auth0.com/t/option-samesite-is-invalid-auth0-express-quickstart/64691 "2022-02-07T12:17:57Z")

</div>

Hi, Some details of the environment initially. Please include the following information in your post: SDK: express-openid-connect Version: 2.4.0 Node: 14.16.1 Error 1 TypeError: option sameSite is invalid at Objec…

---

## [REST Architecture - Part 1: Building The API](https://community.auth0.com/t/rest-architecture-part-1-building-the-api/30669)

<div class="topic-metadata">

**Author:** [@ramiro](https://community.auth0.com/u/ramiro)\
**Replies:** 5\
**Last updated:** [March 2, 2021, 10:17am UTC](https://community.auth0.com/t/rest-architecture-part-1-building-the-api/30669 "2021-03-02T10:17:26Z")

</div>

Learn how to build client-server systems by applying the REST architecture principles. Part 1 shows how to build a true RESTful API by using Node.js and Express.js. Read on :hammer\_and\_wrench: Brought to you by @andrea…

---

## [Refreshing id\_token with express-openid-connect](https://community.auth0.com/t/refreshing-id-token-with-express-openid-connect/73348)

<div class="topic-metadata">

**Author:** [@daniel12](https://community.auth0.com/u/daniel12)\
**Replies:** 1\
**Last updated:** [November 26, 2021, 5:45pm UTC](https://community.auth0.com/t/refreshing-id-token-with-express-openid-connect/73348 "2021-11-26T17:45:11Z")

</div>

I followed the basic example here to set up authentication for my app: GitHub - auth0/express-openid-connect: An Express.js middleware to protect OpenID Connect web applications.. By default it uses the implicit flow, wh…

---

## [Oauth0 sdk (or examples) for nodejs v0.12](https://community.auth0.com/t/oauth0-sdk-or-examples-for-nodejs-v0-12/71492)

<div class="topic-metadata">

**Author:** [@ericsantos](https://community.auth0.com/u/ericsantos)\
**Replies:** 1\
**Last updated:** [October 18, 2021, 12:14pm UTC](https://community.auth0.com/t/oauth0-sdk-or-examples-for-nodejs-v0-12/71492 "2021-10-18T12:14:48Z")

</div>

Hello Community, I have a REST API implemented in NodeJS v0.12 and Express 4 and I have a demand to allow users from an organization (an enterprise client) to connect to it (through my website) with single sign-on using…

---

## [Using Auth0 to secure my express backend](https://community.auth0.com/t/using-auth0-to-secure-my-express-backend/70663)

<div class="topic-metadata">

**Author:** [@dashboardagencyllc](https://community.auth0.com/u/dashboardagencyllc)\
**Replies:** 1\
**Last updated:** [October 4, 2021, 10:51pm UTC](https://community.auth0.com/t/using-auth0-to-secure-my-express-backend/70663 "2021-10-04T22:51:59Z")

</div>

I’m new to Auth0 so please bear with me. I have a static front-end which is hosted in a basic CDN like netlify. I have an express back-end which I serve data to the front-end/process requests from the front-end. I curren…

---

## [Where should I create ManagementClient instances...or should I just create users via client? (Node / React)](https://community.auth0.com/t/where-should-i-create-managementclient-instances-or-should-i-just-create-users-via-client-node-react/66746)

<div class="topic-metadata">

**Author:** [@czbaker](https://community.auth0.com/u/czbaker)\
**Replies:** 3\
**Last updated:** [July 29, 2021, 3:15pm UTC](https://community.auth0.com/t/where-should-i-create-managementclient-instances-or-should-i-just-create-users-via-client-node-react/66746 "2021-07-29T15:15:19Z")

</div>

I’m working on my first real project using Auth0 as an identity management solution and have run into a bit of a question: I see that when you use the NodeJS library (auth0) that you’re supposed to create an instance of…

---

## [Reading Auth0 Session Cookie in Express](https://community.auth0.com/t/reading-auth0-session-cookie-in-express/61782)

<div class="topic-metadata">

**Author:** [@wkersting](https://community.auth0.com/u/wkersting)\
**Replies:** 2\
**Last updated:** [April 27, 2021, 3:18pm UTC](https://community.auth0.com/t/reading-auth0-session-cookie-in-express/61782 "2021-04-27T15:18:12Z")

</div>

Hello, Auth0 forums - I’m wondering if it is possible to read / unsign an Auth0 session cookie in an Node / Express application. I am generating this cookie via a Next.js application using the nextjs-auth0 module and a…

---

## [Error: Package exports for '\[path\]\\node\_modules\\openid-client' do not define a '.' subpath](https://community.auth0.com/t/error-package-exports-for-path-node-modules-openid-client-do-not-define-a-subpath/60486)

<div class="topic-metadata">

**Author:** [@kwebbv](https://community.auth0.com/u/kwebbv)\
**Replies:** 3\
**Last updated:** [April 6, 2021, 9:25pm UTC](https://community.auth0.com/t/error-package-exports-for-path-node-modules-openid-client-do-not-define-a-subpath/60486 "2021-04-06T21:25:12Z")

</div>

Hello guys, I’m integrating my Nodejs + Express app to Auth0, however when I try to start the app I’m getting the following error: Error: Package exports for ‘\[path\]\\node\_modules\\openid-client’ do not define a ‘.’ sub…

---

## [How do I redirect to another URL when using claimCheck?](https://community.auth0.com/t/how-do-i-redirect-to-another-url-when-using-claimcheck/56720)

<div class="topic-metadata">

**Author:** [@jackiegleason](https://community.auth0.com/u/jackiegleason)\
**Replies:** 2\
**Last updated:** [January 25, 2021, 7:38am UTC](https://community.auth0.com/t/how-do-i-redirect-to-another-url-when-using-claimcheck/56720 "2021-01-25T07:38:06Z")

</div>

I have the following code… app.get( "/secure", oidc.claimCheck((req, claims) =\> { console.log(\`The roles are ${JSON.stringify(claims)}\`); return claims\["https://secondave.net/roles"\].includes("ed…

---

## [Serialize user\_metadata in req.user object](https://community.auth0.com/t/serialize-user-metadata-in-req-user-object/55362)

<div class="topic-metadata">

**Author:** [@mshenton75](https://community.auth0.com/u/mshenton75)\
**Replies:** 1\
**Last updated:** [December 29, 2020, 7:59pm UTC](https://community.auth0.com/t/serialize-user-metadata-in-req-user-object/55362 "2020-12-29T19:59:02Z")

</div>

I am using auth0 in my express app. Each user has some attributes in user\_metadata (I can see it in the user profile on the Auth0 UI), but there is no user\_metadata key on the req.user object in express. How can I get …

---

## [React, Express, and MongoDB Setup](https://community.auth0.com/t/react-express-and-mongodb-setup/54072)

<div class="topic-metadata">

**Author:** [@gwhitdev](https://community.auth0.com/u/gwhitdev)\
**Replies:** 1\
**Last updated:** [November 30, 2020, 5:19pm UTC](https://community.auth0.com/t/react-express-and-mongodb-setup/54072 "2020-11-30T17:19:44Z")

</div>

Hi guys, this is exactly what I’m needing to do. Any resources that you could point me to that show how to get the token from React frontend, to express api to mongodb?

---

## [New Integration Guide for Express Quickstart!](https://community.auth0.com/t/new-integration-guide-for-express-quickstart/37887)

<div class="topic-metadata">

**Author:** [@James.Morrison](https://community.auth0.com/u/James.Morrison)\
**Replies:** 3\
**Last updated:** [November 25, 2020, 2:27pm UTC](https://community.auth0.com/t/new-integration-guide-for-express-quickstart/37887 "2020-11-25T14:27:45Z")

</div>

We are happy to announce the release of a new experience of consuming quickstarts in the dashboard aimed at helping developers who want to integrate Auth0 with their existing applications instead of leveraging Auth0’s Qu…

---

## [Pass authorization params with Express/Passport](https://community.auth0.com/t/pass-authorization-params-with-express-passport/46375)

<div class="topic-metadata">

**Author:** [@themadhatter](https://community.auth0.com/u/themadhatter)\
**Replies:** 1\
**Last updated:** [July 16, 2020, 10:15pm UTC](https://community.auth0.com/t/pass-authorization-params-with-express-passport/46375 "2020-07-16T22:15:44Z")

</div>

I have an Express app that uses Passport with the auth0 strategy. I’m trying to have 2 different endpoints for /login and /signup and would like the initial screen to be different depending on the the route the user acce…

---

## [Help needed with Stateless sessions and token based NodeJs QuickStart guide](https://community.auth0.com/t/help-needed-with-stateless-sessions-and-token-based-nodejs-quickstart-guide/35842)

<div class="topic-metadata">

**Author:** [@mark14](https://community.auth0.com/u/mark14)\
**Replies:** 1\
**Last updated:** [January 8, 2020, 2:07pm UTC](https://community.auth0.com/t/help-needed-with-stateless-sessions-and-token-based-nodejs-quickstart-guide/35842 "2020-01-08T14:07:45Z")

</div>

Hi all, I am having issues following this user guide Add Login to Your Express Application - Auth0 Docs as it requires being able to store session state in memory. As i am deploying to the cloud (Google App Engine in t…

---

## [Need Help in figuring out what authentication i need!](https://community.auth0.com/t/need-help-in-figuring-out-what-authentication-i-need/11216)

<div class="topic-metadata">

**Author:** [@orensaldanha](https://community.auth0.com/u/orensaldanha)\
**Replies:** 1\
**Last updated:** [May 2, 2018, 2:50pm UTC](https://community.auth0.com/t/need-help-in-figuring-out-what-authentication-i-need/11216 "2018-05-02T14:50:51Z")

</div>

Hi guys, I am new to the authO platform and building web apps in general. The issue i am facing is that I have no idea about what kind of authenticaton I need. I checked out the quickstarts but they confuses me furthe…

---

## [Where to find app\_metadata in OIDC Conformant tokens & Express](https://community.auth0.com/t/where-to-find-app-metadata-in-oidc-conformant-tokens-express/8971)

<div class="topic-metadata">

**Author:** [@stephen.jensen.ihi](https://community.auth0.com/u/stephen.jensen.ihi)\
**Replies:** 7\
**Last updated:** [February 13, 2018, 3:10pm UTC](https://community.auth0.com/t/where-to-find-app-metadata-in-oidc-conformant-tokens-express/8971 "2018-02-13T15:10:31Z")

</div>

Hi everyone, I’m having some troubles connecting the dots for how to get app\_metadata from a jwt token with Auth0. I am using Auth0 with an express app. I added to flollowing lines to a rule that I had in the auth0 dash…

---

## [Can we generate two tokens for frontend and bakend?](https://community.auth0.com/t/can-we-generate-two-tokens-for-frontend-and-bakend/8690)

<div class="topic-metadata">

**Author:** [@kartavyaparekh96](https://community.auth0.com/u/kartavyaparekh96)\
**Replies:** 2\
**Last updated:** [November 8, 2017, 5:29pm UTC](https://community.auth0.com/t/can-we-generate-two-tokens-for-frontend-and-bakend/8690 "2017-11-08T17:29:05Z")

</div>

one for admin login and second for user login…

---

## [Lock displays twice when using Hosted Login Page w/OIDC enabled. (ExpressJS)](https://community.auth0.com/t/lock-displays-twice-when-using-hosted-login-page-w-oidc-enabled-expressjs/8378)

<div class="topic-metadata">

**Author:** [@Jeff\_Gochin](https://community.auth0.com/u/Jeff_Gochin)\
**Replies:** 2\
**Last updated:** [October 6, 2017, 9:16pm UTC](https://community.auth0.com/t/lock-displays-twice-when-using-hosted-login-page-w-oidc-enabled-expressjs/8378 "2017-10-06T21:16:45Z")

</div>

I am trying to use Lock with an ExpressJS Web Application. Initially I was not using OIDC compliance, but now I am trying to. After trying to work the problem for many hours; Googling, experimentation and reading threa…

---

## [SPA client (Angular) gets either Authorized or JWT requires 3 parts](https://community.auth0.com/t/spa-client-angular-gets-either-authorized-or-jwt-requires-3-parts/7660)

<div class="topic-metadata">

**Author:** [@matthew.barben](https://community.auth0.com/u/matthew.barben)\
**Replies:** 2\
**Last updated:** [July 28, 2017, 6:15am UTC](https://community.auth0.com/t/spa-client-angular-gets-either-authorized-or-jwt-requires-3-parts/7660 "2017-07-28T06:15:00Z")

</div>

Hi There, I have a simple scenario (well I think so). An angular client authenticates via Auth0 and then uses the resulting token to authenticate against our own REST API. However, when using Angular 4 project I contin…

---

## [PassportJS + Browsersync's External url Throws Error](https://community.auth0.com/t/passportjs-browsersyncs-external-url-throws-error/6688)

<div class="topic-metadata">

**Author:** [@yousef.shanawany](https://community.auth0.com/u/yousef.shanawany)\
**Replies:** 1\
**Last updated:** [May 22, 2017, 9:45pm UTC](https://community.auth0.com/t/passportjs-browsersyncs-external-url-throws-error/6688 "2017-05-22T21:45:50Z")

</div>

I’m having a bad experience with PassportJS running with Browser-sync. I’m using passport-Auth0 with my expressjs application. My app runs on localhost:1337. Browser-sync proxies that and runs its version on localhost:30…

---

## [How to autoforward from a login server to correct site and prevent unauthorized client from snooping on a site that they don't belong to](https://community.auth0.com/t/how-to-autoforward-from-a-login-server-to-correct-site-and-prevent-unauthorized-client-from-snooping-on-a-site-that-they-dont-belong-to/6361)

<div class="topic-metadata">

**Author:** [@stephen.jensen.ihi](https://community.auth0.com/u/stephen.jensen.ihi)\
**Replies:** 1\
**Last updated:** [May 5, 2017, 5:08pm UTC](https://community.auth0.com/t/how-to-autoforward-from-a-login-server-to-correct-site-and-prevent-unauthorized-client-from-snooping-on-a-site-that-they-dont-belong-to/6361 "2017-05-05T17:08:17Z")

</div>

Hi everyone, I am trying to set up the following: An express server serves as the sign on for the user. Once they sign on, we redirect them to a particular subdomain based on a value in their profile.app\_metadata.compan…
