# \#react-sdk

**URL:** https://community.auth0.com/tag/react-sdk/1517.md

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

---

## [Inactivity logout message](https://community.auth0.com/t/inactivity-logout-message/86981)

<div class="topic-metadata">

**Author:** [@dudumonteiro](https://community.auth0.com/u/dudumonteiro)\
**Replies:** 1\
**Last updated:** [July 18, 2022, 9:01am UTC](https://community.auth0.com/t/inactivity-logout-message/86981 "2022-07-18T09:01:05Z")

</div>

Hi guys, Sometimes our users gets loggged out for inactivity and they doesn’t know why. I want to show a message when that happens, displaying that they were logged out for inactivity. Does auth0-reacts provide any wa…

---

## [Redirect to self hosted login page](https://community.auth0.com/t/redirect-to-self-hosted-login-page/81723)

<div class="topic-metadata">

**Author:** [@dudumonteiro](https://community.auth0.com/u/dudumonteiro)\
**Replies:** 1\
**Last updated:** [April 14, 2022, 4:29pm UTC](https://community.auth0.com/t/redirect-to-self-hosted-login-page/81723 "2022-04-14T16:29:46Z")

</div>

Can I set auth0-react-sdk to redirect users to my custom self hosted login page instead of auth0 login page?

---

## [Need help on getting idtoken user\_metadata with react-auth0-sdk](https://community.auth0.com/t/need-help-on-getting-idtoken-user-metadata-with-react-auth0-sdk/80740)

<div class="topic-metadata">

**Author:** [@dudumonteiro](https://community.auth0.com/u/dudumonteiro)\
**Replies:** 3\
**Last updated:** [March 31, 2022, 4:39pm UTC](https://community.auth0.com/t/need-help-on-getting-idtoken-user-metadata-with-react-auth0-sdk/80740 "2022-03-31T16:39:12Z")

</div>

Hi there, I attached some user metadata on an Auth0 action on Login, and I can see them correctly attached on Auth0 dashboard. Here’s how it appears there: { "sub": "auth0|6237476d0f4b920069241ec6", "nickname": "a…

---

## [How to add 'user\_metadata' field to user object on clien-side using React](https://community.auth0.com/t/how-to-add-user-metadata-field-to-user-object-on-clien-side-using-react/74605)

<div class="topic-metadata">

**Author:** [@webmaster10](https://community.auth0.com/u/webmaster10)\
**Replies:** 3\
**Last updated:** [December 13, 2021, 8:32am UTC](https://community.auth0.com/t/how-to-add-user-metadata-field-to-user-object-on-clien-side-using-react/74605 "2021-12-13T08:32:51Z")

</div>

Hello, Auth0 Community! Pls, help me with one thing, which I want to implement inside our project. We use React on the client-side (@auth0/auth0-react package), so I need to get the ‘user\_metadata’ field in the user obje…

---

## [Use two Auth0Provider (one for each React injection) causing one injection not working](https://community.auth0.com/t/use-two-auth0provider-one-for-each-react-injection-causing-one-injection-not-working/69901)

<div class="topic-metadata">

**Author:** [@ben.liu](https://community.auth0.com/u/ben.liu)\
**Replies:** 4\
**Last updated:** [October 11, 2021, 6:28pm UTC](https://community.auth0.com/t/use-two-auth0provider-one-for-each-react-injection-causing-one-injection-not-working/69901 "2021-10-11T18:28:20Z")

</div>

Hi, We have a use case using React where we need to inject two places with the same Account component like below: index.tsx if (document.getElementById('injection-placeholder-1')) { ReactDOM.render( \<React.Stri…

---

## [Auth0-react getting "ID token is required but missing" with example app and own code](https://community.auth0.com/t/auth0-react-getting-id-token-is-required-but-missing-with-example-app-and-own-code/66395)

<div class="topic-metadata">

**Author:** [@tobi.v.o](https://community.auth0.com/u/tobi.v.o)\
**Replies:** 2\
**Last updated:** [July 29, 2021, 10:45am UTC](https://community.auth0.com/t/auth0-react-getting-id-token-is-required-but-missing-with-example-app-and-own-code/66395 "2021-07-29T10:45:13Z")

</div>

Hi Community, In the past I used Auth0 Lock for doing the authentication in my React App. Now I want to switch to the auth0-react sdk and created a new dummy Application in the Auth0 UI. After that, I followed “The Com…

---

## [onRedirectCallback receives undefined in nexts production build static generation](https://community.auth0.com/t/onredirectcallback-receives-undefined-in-nexts-production-build-static-generation/61873)

<div class="topic-metadata">

**Author:** [@aajmera](https://community.auth0.com/u/aajmera)\
**Replies:** 12\
**Last updated:** [May 27, 2021, 11:48am UTC](https://community.auth0.com/t/onredirectcallback-receives-undefined-in-nexts-production-build-static-generation/61873 "2021-05-27T11:48:30Z")

</div>

Hi, I am using auth-react sdk for my Nextjs Static site. The scenarios is as follows. Once the user is logged in and shown a particular protected route page. say something like https:/example.com/dashboard/users. Si…

---

## [Invalid state when using auth0-react and Passwordless magic links](https://community.auth0.com/t/invalid-state-when-using-auth0-react-and-passwordless-magic-links/61118)

<div class="topic-metadata">

**Author:** [@rodrigo3](https://community.auth0.com/u/rodrigo3)\
**Replies:** 2\
**Last updated:** [April 15, 2021, 4:29pm UTC](https://community.auth0.com/t/invalid-state-when-using-auth0-react-and-passwordless-magic-links/61118 "2021-04-15T16:29:47Z")

</div>

Please include the following information in your post: Which SDK this is regarding: auth0-react SDK Version: @auth0/auth0-react 1.4.0 Platform Version: React 17.0.1 Code Snippets/Error Messages/Supporting …

---

## [Auth0 Lock + Auth0 React + Universal login?](https://community.auth0.com/t/auth0-lock-auth0-react-universal-login/60156)

<div class="topic-metadata">

**Author:** [@mclslee](https://community.auth0.com/u/mclslee)\
**Replies:** 7\
**Last updated:** [April 12, 2021, 5:28pm UTC](https://community.auth0.com/t/auth0-lock-auth0-react-universal-login/60156 "2021-04-12T17:28:22Z")

</div>

Hello, I’m almost done with our auth flow migration to auth0! The last thing is to actually get a little more functionality than the standard loginWithRedirect() call via react-sdk. Naturally, I found myself over to au…

---

## [Auth0 React SDK "Login with Google" doesn't persist session between routes](https://community.auth0.com/t/auth0-react-sdk-login-with-google-doesnt-persist-session-between-routes/60543)

<div class="topic-metadata">

**Author:** [@lp22](https://community.auth0.com/u/lp22)\
**Replies:** 1\
**Last updated:** [April 7, 2021, 12:28pm UTC](https://community.auth0.com/t/auth0-react-sdk-login-with-google-doesnt-persist-session-between-routes/60543 "2021-04-07T12:28:47Z")

</div>

Hello, I am using auth0 SDK with a React App: “@auth0/auth0-react”: “^1.3.0” My app is based on React sample app Everything works fine, except when users "Login with Google ", it doesn’t seem to persist session token …

---

## [Get jwt access token using react-sdk (getAccessTokenSilently)](https://community.auth0.com/t/get-jwt-access-token-using-react-sdk-getaccesstokensilently/59221)

<div class="topic-metadata">

**Author:** [@shu314](https://community.auth0.com/u/shu314)\
**Replies:** 1\
**Last updated:** [March 10, 2021, 11:17pm UTC](https://community.auth0.com/t/get-jwt-access-token-using-react-sdk-getaccesstokensilently/59221 "2021-03-10T23:17:21Z")

</div>

I am using @auth0/auth0-react@1.3.0. I tried to get the access token in jwt format using getAccessTokenSilently but it did not work. I did also have “audience: http://myapi.com” as a parameter. How can I get the jwt tok…

---

## [Change reset password form/email language](https://community.auth0.com/t/change-reset-password-form-email-language/58743)

<div class="topic-metadata">

**Author:** [@mariam.kamel](https://community.auth0.com/u/mariam.kamel)\
**Replies:** 2\
**Last updated:** [March 2, 2021, 1:01pm UTC](https://community.auth0.com/t/change-reset-password-form-email-language/58743 "2021-03-02T13:01:02Z")

</div>

I’m using universal login and react sdk I changed the language option in the universal login to be French, how can I change the language in the reset form and verification/reset password mail to French as well? I don’t…

---

## [Can't make post request](https://community.auth0.com/t/cant-make-post-request/57815)

<div class="topic-metadata">

**Author:** [@andrescg10](https://community.auth0.com/u/andrescg10)\
**Replies:** 3\
**Last updated:** [February 15, 2021, 9:24am UTC](https://community.auth0.com/t/cant-make-post-request/57815 "2021-02-15T09:24:15Z")

</div>

SDK: auth0-node Hello I’m setting up the auth with React in the front and Node on back, everything works fine when I try to make a GET to Node sending the token from an axios.get headers and checking it on the back but …

---

## [How to check if user has logged out in another tab?](https://community.auth0.com/t/how-to-check-if-user-has-logged-out-in-another-tab/56324)

<div class="topic-metadata">

**Author:** [@denyomonogatari](https://community.auth0.com/u/denyomonogatari)\
**Replies:** 5\
**Last updated:** [January 26, 2021, 10:01am UTC](https://community.auth0.com/t/how-to-check-if-user-has-logged-out-in-another-tab/56324 "2021-01-26T10:01:39Z")

</div>

I have created an SPA using auth0-react. If I start with two logged in tabs of my web application and logout in one tab of my browser, what function, variable, or technique can I use to detect that the user is no longer …

---

## [New React SDK Beta Available!](https://community.auth0.com/t/new-react-sdk-beta-available/44179)

<div class="topic-metadata">

**Author:** [@James.Morrison](https://community.auth0.com/u/James.Morrison)\
**Replies:** 4\
**Last updated:** [November 20, 2020, 8:10am UTC](https://community.auth0.com/t/new-react-sdk-beta-available/44179 "2020-11-20T08:10:53Z")

</div>

Fantastic news, we have a new open beta SDK for React applications! This new SDK provides a of hook and higher-order components to make integration into your React application easier, such as useAuth0 for performing aut…

---

## [Something went wrong when trying to reset password](https://community.auth0.com/t/something-went-wrong-when-trying-to-reset-password/46809)

<div class="topic-metadata">

**Author:** [@ashish.yadav](https://community.auth0.com/u/ashish.yadav)\
**Replies:** 5\
**Last updated:** [July 30, 2020, 10:36am UTC](https://community.auth0.com/t/something-went-wrong-when-trying-to-reset-password/46809 "2020-07-30T10:36:50Z")

</div>

Hi, I’m using auth0-react package and using universal login. When the “forgot password” button is triggered. entering a new password throws a message “Something went wrong, please try again”. But the password does c…

---

## [Using auth0 generated cookies for authentication an app running in an iframe using custom middleware](https://community.auth0.com/t/using-auth0-generated-cookies-for-authentication-an-app-running-in-an-iframe-using-custom-middleware/46866)

<div class="topic-metadata">

**Author:** [@ashish.yadav](https://community.auth0.com/u/ashish.yadav)\
**Replies:** 0\
**Last updated:** [July 24, 2020, 6:59pm UTC](https://community.auth0.com/t/using-auth0-generated-cookies-for-authentication-an-app-running-in-an-iframe-using-custom-middleware/46866 "2020-07-24T18:59:59Z")

</div>

Hi, Quick summary of the architecture: A react application with universal login using react-auth0 sdk. Once the user logs in to the react app, I get jwt token from auth0 and set it as a cookie to be used by another no…
