# \#refresh\_token

**URL:** https://community.auth0.com/tag/547-tag/547.md

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

---

## [checkSession returns login\_required after a few successful calls when using Universal Login with a Custom Domain](https://community.auth0.com/t/checksession-returns-login-required-after-a-few-successful-calls-when-using-universal-login-with-a-custom-domain/202133)

<div class="topic-metadata">

**Author:** [@dhrupal.patel](https://community.auth0.com/u/dhrupal.patel)\
**Replies:** 3\
**Last updated:** [July 31, 2026, 5:07pm UTC](https://community.auth0.com/t/checksession-returns-login-required-after-a-few-successful-calls-when-using-universal-login-with-a-custom-domain/202133 "2026-07-31T17:07:54Z")

</div>

Title: checkSession returns login\_required after a few successful calls when using Universal Login with a Custom Domain Hi everyone, I’m facing an issue with auth0.checkSession() and would appreciate any guidance. Set…

---

## [Token could not be decoded or is missing in DB](https://community.auth0.com/t/token-could-not-be-decoded-or-is-missing-in-db/152070)

<div class="topic-metadata">

**Author:** [@freetechnologiesapp](https://community.auth0.com/u/freetechnologiesapp)\
**Replies:** 4\
**Last updated:** [December 4, 2024, 3:39pm UTC](https://community.auth0.com/t/token-could-not-be-decoded-or-is-missing-in-db/152070 "2024-12-04T15:39:43Z")

</div>

Good morning everyone, I am opening this topic because my users are experiencing login issues with my app due to the refresh token exchange. The logs indicate the error mentioned in the topic title, but I can’t fully u…

---

## [Auth0 spa 2.x returning missing\_refresh\_token](https://community.auth0.com/t/auth0-spa-2-x-returning-missing-refresh-token/98999)

<div class="topic-metadata">

**Author:** [@mir](https://community.auth0.com/u/mir)\
**Replies:** 26\
**Last updated:** [May 11, 2023, 7:32am UTC](https://community.auth0.com/t/auth0-spa-2-x-returning-missing-refresh-token/98999 "2023-05-11T07:32:10Z")

</div>

I have been receiving errors when calling the getTokenSilently() method. The catch block receives missing\_refresh\_token and login\_required error most of the times. I have useRefreshToken enabled along with rotation enab…

---

## [403 Forbidden Error when renewing token](https://community.auth0.com/t/403-forbidden-error-when-renewing-token/93187)

<div class="topic-metadata">

**Author:** [@huzaifaali14](https://community.auth0.com/u/huzaifaali14)\
**Replies:** 9\
**Last updated:** [November 7, 2022, 5:42pm UTC](https://community.auth0.com/t/403-forbidden-error-when-renewing-token/93187 "2022-11-07T17:42:13Z")

</div>

I am facing 403 Forbidden error when I try to renew token. This error appears randomly and most of the time token gets renewed properly but sometimes I face this error. All my configuration including inactivity expiry an…

---

## [Refresh\_token is not getting returned in the AuthorizationTokenRequest flutter](https://community.auth0.com/t/refresh-token-is-not-getting-returned-in-the-authorizationtokenrequest-flutter/87448)

<div class="topic-metadata">

**Author:** [@apeshave](https://community.auth0.com/u/apeshave)\
**Replies:** 1\
**Last updated:** [July 25, 2022, 10:29am UTC](https://community.auth0.com/t/refresh-token-is-not-getting-returned-in-the-authorizationtokenrequest-flutter/87448 "2022-07-25T10:29:04Z")

</div>

Please include the following information in your post: Which SDK this is regarding: flutter\_appauth\_platform\_interface SDK Version: 4.1.0 Platform Version: Flutter 3.0.0 • channel stable Code Snippets/Error Messages/Su…

---

## [Unable to get refresh token from the device code authorization flow](https://community.auth0.com/t/unable-to-get-refresh-token-from-the-device-code-authorization-flow/82127)

<div class="topic-metadata">

**Author:** [@selvi](https://community.auth0.com/u/selvi)\
**Replies:** 3\
**Last updated:** [April 22, 2022, 7:11pm UTC](https://community.auth0.com/t/unable-to-get-refresh-token-from-the-device-code-authorization-flow/82127 "2022-04-22T19:11:21Z")

</div>

unable to get refresh token in the below response. And also updated refresh token settings in app page. Refer the screenshot attached below Command: curl --request POST –url ‘https://domain/oauth/device/code’ –head…

---

## [No Refresh or ID Tokens](https://community.auth0.com/t/no-refresh-or-id-tokens/80483)

<div class="topic-metadata">

**Author:** [@martincl](https://community.auth0.com/u/martincl)\
**Replies:** 4\
**Last updated:** [March 25, 2022, 10:24pm UTC](https://community.auth0.com/t/no-refresh-or-id-tokens/80483 "2022-03-25T22:24:53Z")

</div>

We are rather embarrassingly failing at step one of using Auth0 as an identity provider - getting our application to sign-in… Using the same OAuth client code against AWS Cognito provider and Auth0 gives a wildly differe…

---

## [refreshToken missing from request.oidc](https://community.auth0.com/t/refreshtoken-missing-from-request-oidc/75849)

<div class="topic-metadata">

**Author:** [@Ashish\_Dwivedi](https://community.auth0.com/u/Ashish_Dwivedi)\
**Replies:** 2\
**Last updated:** [January 6, 2022, 3:12am UTC](https://community.auth0.com/t/refreshtoken-missing-from-request-oidc/75849 "2022-01-06T03:12:30Z")

</div>

I’ve created a Regular Web Application for an Express-NodeJS application using express-openid-connect. The config for auth is like this: "authConfig": { "authorizationParams": { "response\_type": "code", …

---

## [How to refresh an access token in a Next.js application?](https://community.auth0.com/t/how-to-refresh-an-access-token-in-a-next-js-application/75806)

<div class="topic-metadata">

**Author:** [@will.dev8787](https://community.auth0.com/u/will.dev8787)\
**Replies:** 1\
**Last updated:** [January 4, 2022, 9:20pm UTC](https://community.auth0.com/t/how-to-refresh-an-access-token-in-a-next-js-application/75806 "2022-01-04T21:20:49Z")

</div>

Found this question which asks about exactly the same problem: user logs in (frontend application gets an access\_token); user updates its profile, frontend sends information to the backend, backend calls the Management…

---

## [Error refreshing access token: invalid\_grant Unknown or invalid refresh token](https://community.auth0.com/t/error-refreshing-access-token-invalid-grant-unknown-or-invalid-refresh-token/74127)

<div class="topic-metadata">

**Author:** [@raina](https://community.auth0.com/u/raina)\
**Replies:** 3\
**Last updated:** [December 7, 2021, 2:40pm UTC](https://community.auth0.com/t/error-refreshing-access-token-invalid-grant-unknown-or-invalid-refresh-token/74127 "2021-12-07T14:40:40Z")

</div>

For my mobile app I employ both passwordless (SMS) login and login via OIDC. When I try to refresh my access tokens, I receive the error message invalid\_grant Unknown or invalid refresh token. Note that I am including th…

---

## [Refresh token call fails with 401 in React Native app](https://community.auth0.com/t/refresh-token-call-fails-with-401-in-react-native-app/59378)

<div class="topic-metadata">

**Author:** [@imsam67](https://community.auth0.com/u/imsam67)\
**Replies:** 3\
**Last updated:** [March 16, 2021, 3:37pm UTC](https://community.auth0.com/t/refresh-token-call-fails-with-401-in-react-native-app/59378 "2021-03-16T15:37:01Z")

</div>

In my React Native app – init app not Expo – I’m trying to refresh the access\_token but my POST call is failing with 401 . I’m testing this functionality so I make the POST call some 30 seconds after I login so not sure …

---

## [Refresh token returned from Postman, but not Angular2 call](https://community.auth0.com/t/refresh-token-returned-from-postman-but-not-angular2-call/58278)

<div class="topic-metadata">

**Author:** [@kruegeba](https://community.auth0.com/u/kruegeba)\
**Replies:** 3\
**Last updated:** [February 23, 2021, 3:36pm UTC](https://community.auth0.com/t/refresh-token-returned-from-postman-but-not-angular2-call/58278 "2021-02-23T15:36:11Z")

</div>

I have an Angular2 SPA which directs a user through an authorization code process for a 3rd party application. After the user logs in and authorizes the 3rd party application, I use the returned code and try to create an…

---

## [Id Token for backend API](https://community.auth0.com/t/id-token-for-backend-api/56555)

<div class="topic-metadata">

**Author:** [@tibor](https://community.auth0.com/u/tibor)\
**Replies:** 1\
**Last updated:** [January 21, 2021, 2:22pm UTC](https://community.auth0.com/t/id-token-for-backend-api/56555 "2021-01-21T14:22:06Z")

</div>

Hi, We have a SPA, where we only want let the user launch searches if they are authenticated (google, facebook or passwordless magic link). Once the user logged in, we really want him to stay logged in for even 365 days…

---

## [Cannot enable refresh token - options are disabled](https://community.auth0.com/t/cannot-enable-refresh-token-options-are-disabled/52819)

<div class="topic-metadata">

**Author:** [@jivinivan](https://community.auth0.com/u/jivinivan)\
**Replies:** 4\
**Last updated:** [November 9, 2020, 6:39pm UTC](https://community.auth0.com/t/cannot-enable-refresh-token-options-are-disabled/52819 "2020-11-09T18:39:23Z")

</div>

I’m experiencing the same issue described here: Refresh Token Behaviour Disabled The refresh token options are disabled. I have the Refresh Token grant type enabled Same issue on both regular web application and machi…

---

## [Get Refresh Token from Custom Social Connection login](https://community.auth0.com/t/get-refresh-token-from-custom-social-connection-login/45525)

<div class="topic-metadata">

**Author:** [@luke-imin](https://community.auth0.com/u/luke-imin)\
**Replies:** 2\
**Last updated:** [July 6, 2020, 11:13am UTC](https://community.auth0.com/t/get-refresh-token-from-custom-social-connection-login/45525 "2020-07-06T11:13:20Z")

</div>

Hi, We’re using a Custom Social Connection to connect with an organization that has implemented an OpenID Connect Provider that conforms to a publicly defined specification. In accordance with the specification, we nee…

---

## [Refresh Token not in /oauth/token payload](https://community.auth0.com/t/refresh-token-not-in-oauth-token-payload/44557)

<div class="topic-metadata">

**Author:** [@XfiJSXIUvu](https://community.auth0.com/u/XfiJSXIUvu)\
**Replies:** 3\
**Last updated:** [June 13, 2020, 3:24pm UTC](https://community.auth0.com/t/refresh-token-not-in-oauth-token-payload/44557 "2020-06-13T15:24:54Z")

</div>

I cannot seem to get a refresh token in my call to the /oauth/token endpoint. First I authorize myself like so: const redirectUrl = chrome.identity.getRedirectURL('auth0'); const clientId = "CLIENT\_ID"; const options = …

---

## [Auth0 with angular-oauth2-oidc. Problem with refreshing token](https://community.auth0.com/t/auth0-with-angular-oauth2-oidc-problem-with-refreshing-token/25094)

<div class="topic-metadata">

**Author:** [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Replies:** 0\
**Last updated:** [May 10, 2019, 7:30am UTC](https://community.auth0.com/t/auth0-with-angular-oauth2-oidc-problem-with-refreshing-token/25094 "2019-05-10T07:30:53Z")

</div>

Posting it on behalf of @philly. Hi. I am using Auth0 with angular-oauth2-oidc. Unfortunately I am not able to refresh the token. The app is sending a request like: https://philly-vanilly.auth0.com/authorize?response\_t…

---

## [Best Practice approach to Auth0 Refresh Token within a Express Node app](https://community.auth0.com/t/best-practice-approach-to-auth0-refresh-token-within-a-express-node-app/11190)

<div class="topic-metadata">

**Author:** [@megki.soula](https://community.auth0.com/u/megki.soula)\
**Replies:** 1\
**Last updated:** [December 18, 2018, 6:14pm UTC](https://community.auth0.com/t/best-practice-approach-to-auth0-refresh-token-within-a-express-node-app/11190 "2018-12-18T18:14:20Z")

</div>

I am implementing auth0 and have it working with our app almost completely. The only remaining component is to implement the refresh token to ensure that the user remains logged in. The app uses Node and Express middlew…

---

## [Getting the Authorization Code](https://community.auth0.com/t/getting-the-authorization-code/12456)

<div class="topic-metadata">

**Author:** [@talzamir92](https://community.auth0.com/u/talzamir92)\
**Replies:** 1\
**Last updated:** [December 19, 2018, 11:53am UTC](https://community.auth0.com/t/getting-the-authorization-code/12456 "2018-12-19T11:53:03Z")

</div>

Client: Angular 4 Server: Java I want to implement a refresh token method, and therefore I’m trying to get an Authorization Code in the client. The issue is that I don’t received the code value after using the parseHa…

---

## [Refresh Token Scopes](https://community.auth0.com/t/refresh-token-scopes/10746)

<div class="topic-metadata">

**Author:** [@brianra](https://community.auth0.com/u/brianra)\
**Replies:** 1\
**Last updated:** [April 9, 2018, 9:04pm UTC](https://community.auth0.com/t/refresh-token-scopes/10746 "2018-04-09T21:04:36Z")

</div>

I have an app that uses refresh tokens. When using the refresh token to get a new access token, I’m noticing that some users have an empty scope on the access token, and some have a scope that matches the scopes used du…

---

## [Method to get new access\_token based on refresh\_token in PHP SDK](https://community.auth0.com/t/method-to-get-new-access-token-based-on-refresh-token-in-php-sdk/7721)

<div class="topic-metadata">

**Author:** [@patrick.brunmayr](https://community.auth0.com/u/patrick.brunmayr)\
**Replies:** 2\
**Last updated:** [February 9, 2018, 12:50pm UTC](https://community.auth0.com/t/method-to-get-new-access-token-based-on-refresh-token-in-php-sdk/7721 "2018-02-09T12:50:04Z")

</div>

Could not find any method in the PHP SDK that would generate a new access\_token based on the refresh\_token. Is there something missing ? How can i do that without doing manual CURL calls?

---

## [Device name for Resource Owner Password flow (Java)](https://community.auth0.com/t/device-name-for-resource-owner-password-flow-java/7853)

<div class="topic-metadata">

**Author:** [@AndreasJScholz](https://community.auth0.com/u/AndreasJScholz)\
**Replies:** 2\
**Last updated:** [December 13, 2017, 7:38pm UTC](https://community.auth0.com/t/device-name-for-resource-owner-password-flow-java/7853 "2017-12-13T19:38:52Z")

</div>

I am using the auth0-java library and want to generate refresh tokens using the offline\_access scope If authentication succeeds the token will show in the dashboard user → devices tab correctly (counter will increment) …

---

## [Do I need to store IDP access\_token + refresh\_token on my own, or I can use Auth0?](https://community.auth0.com/t/do-i-need-to-store-idp-access-token-refresh-token-on-my-own-or-i-can-use-auth0/8801)

<div class="topic-metadata">

**Author:** [@m.bellino](https://community.auth0.com/u/m.bellino)\
**Replies:** 1\
**Last updated:** [November 22, 2017, 7:27pm UTC](https://community.auth0.com/t/do-i-need-to-store-idp-access-token-refresh-token-on-my-own-or-i-can-use-auth0/8801 "2017-11-22T19:27:44Z")

</div>

After I successfully authenticate on an external IDP, I can use the Management API to retrieve the IDP access\_token and refresh\_token. Using the IDP access\_token I’ll be able to call the services provided by the IDP. A…

---

## [Custom social connections and refresh\_token](https://community.auth0.com/t/custom-social-connections-and-refresh-token/8756)

<div class="topic-metadata">

**Author:** [@daniel.moore](https://community.auth0.com/u/daniel.moore)\
**Replies:** 1\
**Last updated:** [November 16, 2017, 6:40pm UTC](https://community.auth0.com/t/custom-social-connections-and-refresh-token/8756 "2017-11-16T18:40:48Z")

</div>

We are using a custom social connection for an Azure AD oAuth flow, we use the custom connection so we can do some property mapping during the flow. We are trying to not only get the access\_token but also the refresh\_tok…

---

## [In Mobile Application - We need id\_token and refresh\_token during Social Login. There is also a requirement to get the latest id\_token using the refresh\_token](https://community.auth0.com/t/in-mobile-application-we-need-id-token-and-refresh-token-during-social-login-there-is-also-a-requirement-to-get-the-latest-id-token-using-the-refresh-token/8658)

<div class="topic-metadata">

**Author:** [@aswin.kumar](https://community.auth0.com/u/aswin.kumar)\
**Replies:** 5\
**Last updated:** [November 13, 2017, 10:24pm UTC](https://community.auth0.com/t/in-mobile-application-we-need-id-token-and-refresh-token-during-social-login-there-is-also-a-requirement-to-get-the-latest-id-token-using-the-refresh-token/8658 "2017-11-13T22:24:11Z")

</div>

In Mobile Application - We need id\_token and refresh\_token during Social Login. There is also a requirement to get the latest id\_token using the refresh\_token. Since We are using Non-OIDC client we get refresh\_token an…

---

## [IDP refresh token](https://community.auth0.com/t/idp-refresh-token/8644)

<div class="topic-metadata">

**Author:** [@admin24](https://community.auth0.com/u/admin24)\
**Replies:** 1\
**Last updated:** [November 7, 2017, 9:36pm UTC](https://community.auth0.com/t/idp-refresh-token/8644 "2017-11-07T21:36:33Z")

</div>

I have an access token from an IDP (Box). Unfortunately the access token only lasts an hour, so I need to use the refresh token that Box returns to update the access token. My understanding is that refresh tokens are on…

---

## [User returned with wrong identity (not belonging to current Connection)](https://community.auth0.com/t/user-returned-with-wrong-identity-not-belonging-to-current-connection/8636)

<div class="topic-metadata">

**Author:** [@emrah](https://community.auth0.com/u/emrah)\
**Replies:** 2\
**Last updated:** [October 31, 2017, 10:56pm UTC](https://community.auth0.com/t/user-returned-with-wrong-identity-not-belonging-to-current-connection/8636 "2017-10-31T22:56:06Z")

</div>

I have a setup where I have multiple Connections pointing to different custom databases. It seems like the users in one Connection is ignored. This is setup like this, because I have multiple environments, in this case: …

---

## [Refresh\_token from passwordless does not return a new id\_token](https://community.auth0.com/t/refresh-token-from-passwordless-does-not-return-a-new-id-token/8018)

<div class="topic-metadata">

**Author:** [@meltwater-mercury](https://community.auth0.com/u/meltwater-mercury)\
**Replies:** 1\
**Last updated:** [October 2, 2017, 4:59pm UTC](https://community.auth0.com/t/refresh-token-from-passwordless-does-not-return-a-new-id-token/8018 "2017-10-02T16:59:18Z")

</div>

If I log in using passwordless (deeplinking method), then do a refresh\_token, I don’t get a new id\_token, but only an access\_token. If I log in using email/password, the refresh\_token does return a new id\_token. Is this …

---

## [Is it possible to update user data against their connection (primary identity provider) with offline scope (refresh token)](https://community.auth0.com/t/is-it-possible-to-update-user-data-against-their-connection-primary-identity-provider-with-offline-scope-refresh-token/8129)

<div class="topic-metadata">

**Author:** [@dave2](https://community.auth0.com/u/dave2)\
**Replies:** 3\
**Last updated:** [September 9, 2017, 12:41am UTC](https://community.auth0.com/t/is-it-possible-to-update-user-data-against-their-connection-primary-identity-provider-with-offline-scope-refresh-token/8129 "2017-09-09T00:41:56Z")

</div>

I have setup an enterprise ADFS connection, with the user going through the PKCE authorization grant with offline access added to the scope. This retrieves for me a refresh token. I mistakenly thought that using this ref…

---

## [Refresh token bug in JWT method](https://community.auth0.com/t/refresh-token-bug-in-jwt-method/8110)

<div class="topic-metadata">

**Author:** [@derakhshanfar.hossei](https://community.auth0.com/u/derakhshanfar.hossei)\
**Replies:** 0\
**Last updated:** [September 6, 2017, 9:12pm UTC](https://community.auth0.com/t/refresh-token-bug-in-jwt-method/8110 "2017-09-06T21:12:25Z")

</div>

according to this article A JWT old for new exchange schema - 简书 one method to secure the JWT is refreshToken: in center auth server, we maintain a table like this: table auth\_tokens( user\_id, jwt\_hash, ex…

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