# \#react

**URL:** https://community.auth0.com/tag/react/332.md

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

---

## [Receiving JWE token instead of JWT in Next.js app session](https://community.auth0.com/t/receiving-jwe-token-instead-of-jwt-in-next-js-app-session/167855)

<div class="topic-metadata">

**Author:** [@rsacks](https://community.auth0.com/u/rsacks)\
**Replies:** 6\
**Last updated:** [July 7, 2026, 11:06am UTC](https://community.auth0.com/t/receiving-jwe-token-instead-of-jwt-in-next-js-app-session/167855 "2026-07-07T11:06:13Z")

</div>

Hi, We are expecting, a JWT token. We can’t figure out why we are getting a JWE token instead. The only option I can find that would cause this is a plugin that is off. My understanding is JWT should be the default. I a…

---

## [How to implement MFA step-up when using Auth0.js SDK for authentication](https://community.auth0.com/t/how-to-implement-mfa-step-up-when-using-auth0-js-sdk-for-authentication/27722)

<div class="topic-metadata">

**Author:** [@daanporon](https://community.auth0.com/u/daanporon)\
**Replies:** 8\
**Last updated:** [October 23, 2025, 5:22am UTC](https://community.auth0.com/t/how-to-implement-mfa-step-up-when-using-auth0-js-sdk-for-authentication/27722 "2025-10-23T05:22:49Z")

</div>

Hi, We integrated a standard login procedure using Username-Password-Authentication via the auth0.js library (version 9.19.4) in our React application. Now for certain calls on our api we need to step up our authenticat…

---

## [Support for Organization Specific Actions](https://community.auth0.com/t/support-for-organization-specific-actions/185181)

<div class="topic-metadata">

**Author:** [@sarthak.sahoo](https://community.auth0.com/u/sarthak.sahoo)\
**Replies:** 2\
**Last updated:** [July 25, 2025, 10:11am UTC](https://community.auth0.com/t/support-for-organization-specific-actions/185181 "2025-07-25T10:11:13Z")

</div>

Feature: Support for Organization-Specific Action triggers Description: Currently, Auth0 allows the creation of Actions that can be triggered during various stages of the authentication and authorization process. Howe…

---

## [How to simulate IDP-Initiated SSO with an OIDC Connection](https://community.auth0.com/t/how-to-simulate-idp-initiated-sso-with-an-oidc-connection/186826)

<div class="topic-metadata">

**Author:** [@sam.yapkowitz](https://community.auth0.com/u/sam.yapkowitz)\
**Replies:** 1\
**Last updated:** [July 1, 2025, 3:11pm UTC](https://community.auth0.com/t/how-to-simulate-idp-initiated-sso-with-an-oidc-connection/186826 "2025-07-01T15:11:17Z")

</div>

Hey Auth0 Community! Many of us work in environments where users start their journey from a central Identity Provider (IDP) portal, like an Okta dashboard. While OpenID Connect (OIDC) is fundamentally Service Provider (…

---

## [Keycloak initialization failed](https://community.auth0.com/t/keycloak-initialization-failed/185376)

<div class="topic-metadata">

**Author:** [@homayungit](https://community.auth0.com/u/homayungit)\
**Replies:** 1\
**Last updated:** [April 30, 2025, 8:51pm UTC](https://community.auth0.com/t/keycloak-initialization-failed/185376 "2025-04-30T20:51:32Z")

</div>

I’m using Keycloak for SSO, YARP as the API Gateway, .NET 9 Web API, and React for the frontend. I already have a deployed environment where everything works fine when hosted on Windows Server with IIS. However, I recen…

---

## [Restrict access to React app with RBAC Scopes](https://community.auth0.com/t/restrict-access-to-react-app-with-rbac-scopes/90801)

<div class="topic-metadata">

**Author:** [@astaubin](https://community.auth0.com/u/astaubin)\
**Replies:** 1\
**Last updated:** [January 28, 2025, 7:50pm UTC](https://community.auth0.com/t/restrict-access-to-react-app-with-rbac-scopes/90801 "2025-01-28T19:50:37Z")

</div>

We would like to restrict access to one of our React Applications based on a set of permissions set on a Role in Auth0. We are looking at using RBAC to achieve this and have the permissions working with the correct Scope…

---

## [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…

---

## [How to get token from outside React components?](https://community.auth0.com/t/how-to-get-token-from-outside-react-components/68756)

<div class="topic-metadata">

**Author:** [@xiaohui](https://community.auth0.com/u/xiaohui)\
**Replies:** 4\
**Last updated:** [August 14, 2024, 1:12pm UTC](https://community.auth0.com/t/how-to-get-token-from-outside-react-components/68756 "2024-08-14T13:12:32Z")

</div>

I am using axios to make requests to my APIs. Currently I use an axios interceptor to set the token to every request that gets sent (so I don’t have to repeat getting the token from within the component). Is there any wa…

---

## [Getting an error of JWT in the browser](https://community.auth0.com/t/getting-an-error-of-jwt-in-the-browser/134706)

<div class="topic-metadata">

**Author:** [@Rituraj](https://community.auth0.com/u/Rituraj)\
**Replies:** 3\
**Last updated:** [May 23, 2024, 4:29pm UTC](https://community.auth0.com/t/getting-an-error-of-jwt-in-the-browser/134706 "2024-05-23T16:29:08Z")

</div>

I am trying to create a Signup/Signin application using mern stack and JWT but can’t run the application on the browser and getting some error - github link of the code - GitHub - Rituraj-13/Auth: A simple mern auth …

---

## [First login after account link fails when using Account Link extension with React](https://community.auth0.com/t/first-login-after-account-link-fails-when-using-account-link-extension-with-react/60452)

<div class="topic-metadata">

**Author:** [@satvir](https://community.auth0.com/u/satvir)\
**Replies:** 1\
**Last updated:** [May 20, 2024, 10:56pm UTC](https://community.auth0.com/t/first-login-after-account-link-fails-when-using-account-link-extension-with-react/60452 "2024-05-20T22:56:27Z")

</div>

When the primary account is passwordless and the secondary account is a google social connection: Redirected to our home page, and the url shows as: localhost:3000/error=access\_denied&error\_description=no%20email%20or%…

---

## [Keep a React app logged in for more than 24hrs](https://community.auth0.com/t/keep-a-react-app-logged-in-for-more-than-24hrs/71345)

<div class="topic-metadata">

**Author:** [@bunge12](https://community.auth0.com/u/bunge12)\
**Replies:** 2\
**Last updated:** [October 17, 2023, 12:24pm UTC](https://community.auth0.com/t/keep-a-react-app-logged-in-for-more-than-24hrs/71345 "2023-10-17T12:24:19Z")

</div>

Hello, auth0 community! I have a React app and users log in using auth0 with a username & password. The React app then connects to a back-end API and uses the access token to verify that the user can access the API. The…

---

## [How to Deploy a React App Secured By Auth0 to Vercel](https://community.auth0.com/t/how-to-deploy-a-react-app-secured-by-auth0-to-vercel/106408)

<div class="topic-metadata">

**Author:** [@byron.motoche](https://community.auth0.com/u/byron.motoche)\
**Replies:** 3\
**Last updated:** [July 31, 2023, 8:59am UTC](https://community.auth0.com/t/how-to-deploy-a-react-app-secured-by-auth0-to-vercel/106408 "2023-07-31T08:59:58Z")

</div>

This guide helps you learn how to deploy a React application secured by Auth0 to Vercel.

---

## [JsonWebToken: jwt malformed even after I get a token is sent](https://community.auth0.com/t/jsonwebtoken-jwt-malformed-even-after-i-get-a-token-is-sent/109672)

<div class="topic-metadata">

**Author:** [@DS-LIT](https://community.auth0.com/u/DS-LIT)\
**Replies:** 4\
**Last updated:** [June 27, 2023, 7:01pm UTC](https://community.auth0.com/t/jsonwebtoken-jwt-malformed-even-after-i-get-a-token-is-sent/109672 "2023-06-27T19:01:15Z")

</div>

Hey, So I have started to build myself a full stack app, at the moment using apollo server, apollo client, graphql , react and Auth0. I have followed every piece of documentation and read so many bugs. I keep getting jwt…

---

## [NextJS - access\_denied (Script execution time exceeded)](https://community.auth0.com/t/nextjs-access-denied-script-execution-time-exceeded/87186)

<div class="topic-metadata">

**Author:** [@zachary.willard](https://community.auth0.com/u/zachary.willard)\
**Replies:** 5\
**Last updated:** [April 3, 2023, 10:04am UTC](https://community.auth0.com/t/nextjs-access-denied-script-execution-time-exceeded/87186 "2023-04-03T10:04:24Z")

</div>

Hello - I am trying to solve an intermittent issue where the client is unable to access the application after authenticating. We are using: Nextjs 12.1.6 @auth0/nextjs-auth0 1.9.0: GitHub - auth0/nextjs-auth0: Next.js…

---

## [Go server - need help to verify Auth0 token from React (frontend) and get the userId](https://community.auth0.com/t/go-server-need-help-to-verify-auth0-token-from-react-frontend-and-get-the-userid/99927)

<div class="topic-metadata">

**Author:** [@oded1](https://community.auth0.com/u/oded1)\
**Replies:** 3\
**Last updated:** [March 27, 2023, 1:36pm UTC](https://community.auth0.com/t/go-server-need-help-to-verify-auth0-token-from-react-frontend-and-get-the-userid/99927 "2023-03-27T13:36:58Z")

</div>

Hi, Our setup is a React app on the frontend which uses ‘@auth0/auth0-spa-js’ library to connect the user to our Auth0 account. On the backend we have a Go server which exposes our company API services. My goal is to …

---

## [Log in works but spits a invalid JWT?](https://community.auth0.com/t/log-in-works-but-spits-a-invalid-jwt/102383)

<div class="topic-metadata">

**Author:** [@fyll](https://community.auth0.com/u/fyll)\
**Replies:** 3\
**Last updated:** [March 22, 2023, 1:55pm UTC](https://community.auth0.com/t/log-in-works-but-spits-a-invalid-jwt/102383 "2023-03-22T13:55:57Z")

</div>

After “loginWithRedirect” in React i get the access token using getAccessTokenSilently but it does not return a valid JWT Here we injected the Auth0Provider into the app import React from "react" import { useNavigate …

---

## [Implementing Auth0 Protected Routes using React Router v6...?](https://community.auth0.com/t/implementing-auth0-protected-routes-using-react-router-v6/75667)

<div class="topic-metadata">

**Author:** [@robliou01](https://community.auth0.com/u/robliou01)\
**Replies:** 18\
**Last updated:** [January 6, 2023, 1:22am UTC](https://community.auth0.com/t/implementing-auth0-protected-routes-using-react-router-v6/75667 "2023-01-06T01:22:38Z")

</div>

Hello Friends, I’m wondering if there’s anyone who could please provide a resource on how to implement Auth0 Protected Route functionality using React Router v6? The Auth0 React tutorial that currently exists, while ve…

---

## [Auth0 react SDK -- way to check for authed user without using client-side hooks](https://community.auth0.com/t/auth0-react-sdk-way-to-check-for-authed-user-without-using-client-side-hooks/96844)

<div class="topic-metadata">

**Author:** [@dmb.programmer](https://community.auth0.com/u/dmb.programmer)\
**Replies:** 4\
**Last updated:** [December 23, 2022, 11:06pm UTC](https://community.auth0.com/t/auth0-react-sdk-way-to-check-for-authed-user-without-using-client-side-hooks/96844 "2022-12-23T23:06:55Z")

</div>

Is there any way at all to check if a user is authed via an API call or something? Currently we have to show loading spinners in our UI because the useAuth0 hook takes time (and is called after the component/page loads o…

---

## [Auth0-spa-js, passing returnTo to logout not working](https://community.auth0.com/t/auth0-spa-js-passing-returnto-to-logout-not-working/96855)

<div class="topic-metadata">

**Author:** [@joshy](https://community.auth0.com/u/joshy)\
**Replies:** 2\
**Last updated:** [December 20, 2022, 10:32pm UTC](https://community.auth0.com/t/auth0-spa-js-passing-returnto-to-logout-not-working/96855 "2022-12-20T22:32:11Z")

</div>

Hey all, I am passing the returnTo parameter to my logout function. However, upon log out the redirect to the logout/v2 endpoint has my client id, but doesn’t specify the return to parameter. It’s not getting set on the…

---

## [Creating custom login screen in Auth0](https://community.auth0.com/t/creating-custom-login-screen-in-auth0/95988)

<div class="topic-metadata">

**Author:** [@platform-admin](https://community.auth0.com/u/platform-admin)\
**Replies:** 2\
**Last updated:** [December 8, 2022, 11:45am UTC](https://community.auth0.com/t/creating-custom-login-screen-in-auth0/95988 "2022-12-08T11:45:33Z")

</div>

Hi, we are planning to Use custom template & create our own login screen. Use custom template(same one above) & create our own signup screen with additional fields (which we will save a user\_metadata. Custom domain to …

---

## [Ask for access directly on loginWithPopup](https://community.auth0.com/t/ask-for-access-directly-on-loginwithpopup/93601)

<div class="topic-metadata">

**Author:** [@blendaddict](https://community.auth0.com/u/blendaddict)\
**Replies:** 1\
**Last updated:** [November 7, 2022, 8:21pm UTC](https://community.auth0.com/t/ask-for-access-directly-on-loginwithpopup/93601 "2022-11-07T20:21:49Z")

</div>

Dear auth0 community My stack: reactTs frontend, nodeTs express backend api I am trying to implement the following: I want users to register with loginWithPopup() and then ask for an api access token with getAccessTok…

---

## [Show Popup/Alert Before Logging Out With GetAccesTokenSilently](https://community.auth0.com/t/show-popup-alert-before-logging-out-with-getaccestokensilently/93619)

<div class="topic-metadata">

**Author:** [@ritiwari369](https://community.auth0.com/u/ritiwari369)\
**Replies:** 3\
**Last updated:** [November 3, 2022, 12:12pm UTC](https://community.auth0.com/t/show-popup-alert-before-logging-out-with-getaccestokensilently/93619 "2022-11-03T12:12:54Z")

</div>

Hi SDK:- Latest REACT Auth0 SDK In react, I’m storing access token in cookie. I want to update access token (grant\_type : “refresh\_token”) after its expiry using getAccessTokenSilently. And setup works fine until abs…

---

## [Getting access tokens inside another hook/reusable code for getting access tokens](https://community.auth0.com/t/getting-access-tokens-inside-another-hook-reusable-code-for-getting-access-tokens/91629)

<div class="topic-metadata">

**Author:** [@dramsay1996](https://community.auth0.com/u/dramsay1996)\
**Replies:** 3\
**Last updated:** [October 1, 2022, 4:47am UTC](https://community.auth0.com/t/getting-access-tokens-inside-another-hook-reusable-code-for-getting-access-tokens/91629 "2022-10-01T04:47:48Z")

</div>

Question: I am using auth0 to authorize access from my React application to my API. I am using JWT access tokens for every call. For every call to the API, I’m using the following custom hook to retrieve an access token …

---

## [Get latest useAuth0().user after getAccessTokenSilently](https://community.auth0.com/t/get-latest-useauth0-user-after-getaccesstokensilently/90092)

<div class="topic-metadata">

**Author:** [@scott.liu](https://community.auth0.com/u/scott.liu)\
**Replies:** 1\
**Last updated:** [September 30, 2022, 11:45pm UTC](https://community.auth0.com/t/get-latest-useauth0-user-after-getaccesstokensilently/90092 "2022-09-30T23:45:30Z")

</div>

Please include the following information in your post: Which SDK this is regarding: @auth0/auth0-react SDK Version: 1.6.0 Inside one of my component, I’m updating the accessToken by passing one of the props as the par…

---

## [Flow for fetching a user's role and permissions](https://community.auth0.com/t/flow-for-fetching-a-users-role-and-permissions/91038)

<div class="topic-metadata">

**Author:** [@bigpotato](https://community.auth0.com/u/bigpotato)\
**Replies:** 1\
**Last updated:** [September 30, 2022, 9:50pm UTC](https://community.auth0.com/t/flow-for-fetching-a-users-role-and-permissions/91038 "2022-09-30T21:50:06Z")

</div>

I’m trying to implement Auth0 in my react app. My react app requires the user’s role and permissions to block access to certain routes. It looks like there is no way to do it using @auth0/auth0-react, so I’m assuming I h…

---

## [New access token with every call to getAccessTokenSilently()](https://community.auth0.com/t/new-access-token-with-every-call-to-getaccesstokensilently/91189)

<div class="topic-metadata">

**Author:** [@pi1](https://community.auth0.com/u/pi1)\
**Replies:** 2\
**Last updated:** [September 27, 2022, 12:58pm UTC](https://community.auth0.com/t/new-access-token-with-every-call-to-getaccesstokensilently/91189 "2022-09-27T12:58:00Z")

</div>

I’m writing a SPA using auth0-react 1.11. Either I’m doing something wrong or there is an issue with token caching. It feels like I’m following all recommended practices. I call getAccessTokenSilently before every call …

---

## [When does getAccessTokenSilently refresh the access token?](https://community.auth0.com/t/when-does-getaccesstokensilently-refresh-the-access-token/90342)

<div class="topic-metadata">

**Author:** [@eywolfe](https://community.auth0.com/u/eywolfe)\
**Replies:** 2\
**Last updated:** [September 12, 2022, 11:11pm UTC](https://community.auth0.com/t/when-does-getaccesstokensilently-refresh-the-access-token/90342 "2022-09-12T23:11:02Z")

</div>

Which SDK this is regarding: @auth0/auth0-react SDK Version: 1.10.2 Platform Version: How can I check what version I’m on? I’m using getAccessTokenSilently in a Provider to refresh access tokens in my application, and …

---

## [Cannot get desired scope from react-auth0 getAccessTokenWithPopup](https://community.auth0.com/t/cannot-get-desired-scope-from-react-auth0-getaccesstokenwithpopup/89542)

<div class="topic-metadata">

**Author:** [@MamorukunBE](https://community.auth0.com/u/MamorukunBE)\
**Replies:** 2\
**Last updated:** [August 31, 2022, 7:17pm UTC](https://community.auth0.com/t/cannot-get-desired-scope-from-react-auth0-getaccesstokenwithpopup/89542 "2022-08-31T19:17:32Z")

</div>

Hi all, I have a hard time understanding how API/scopes work, and I was hoping to get some help from you. Actually, I have a running SPA application and a corresponding “machine to machine” API application linked (not …

---

## [Secure api requests from react to django backend](https://community.auth0.com/t/secure-api-requests-from-react-to-django-backend/89453)

<div class="topic-metadata">

**Author:** [@k.impolevicius](https://community.auth0.com/u/k.impolevicius)\
**Replies:** 1\
**Last updated:** [August 26, 2022, 10:44pm UTC](https://community.auth0.com/t/secure-api-requests-from-react-to-django-backend/89453 "2022-08-26T22:44:48Z")

</div>

I have web app. This consist of services deployed on Docker engine. The main services/containers are: Frontend : React on Nginx web server Backend (API) : Django, DRF on gunicorn on Nginx For frontend I use Auth0. It …

---

## ['user' is undefined and isAuthenticated returns false after login](https://community.auth0.com/t/user-is-undefined-and-isauthenticated-returns-false-after-login/87495)

<div class="topic-metadata">

**Author:** [@lm2000](https://community.auth0.com/u/lm2000)\
**Replies:** 3\
**Last updated:** [July 29, 2022, 2:01pm UTC](https://community.auth0.com/t/user-is-undefined-and-isauthenticated-returns-false-after-login/87495 "2022-07-29T14:01:22Z")

</div>

I am able to log in and redirect to my redirectURI path but I get an error “Cannot destructure property ‘name’ of ‘user’ as it is undefined.” and isAuthenticated returns false. I have a file where I create the Auth0 pro…

[Next page](https://community.auth0.com/tag/react/332.md?match_all_tags=true&page=1&tags%5B%5D=react)
