Users getting logged out with "Unsuccessful Refresh Token exchange, reused refresh token detected"
维护者通常 1 天内回复
评估
这个 Issue 还没有评估数据。
描述
Checklist
- The issue can be reproduced in the react-native-auth0 sample app (or N/A).
- I have looked into the Readme, Examples, and FAQ and have not found a suitable solution or answer.
- I have looked into the API documentation and have not found a suitable solution or answer.
- I have searched the issues and have not found a suitable solution or answer.
- I have searched the Auth0 Community forums and have not found a suitable solution or answer.
- I agree to the terms within the Auth0 Code of Conduct.
Description
Our usage of Auth0 is pretty simple. After the user has been logged in we just attach the access token to network calls and verify them server side.
const useApi = (): Api => {
const { getCredentials } = useAuth0()
const backend = axios.create({ baseURL: apiUri, timeout: 10000 })
backend.interceptors.request.use(
async config => {
const credentials = await getCredentials()
config.headers["Authorization"] = `Bearer ${credentials?.accessToken}`
return config
},
async error => {}
)
}
We have gotten user reports that they get error in title. Our understanding is that this error is unrecoverable so we log the user out and force them to re-authenticate. We have a couple of thousand weekly users and this happens to maybe 2% of them.
One log id as an example:
90020251110035154104236000000000000001223372093331920555
Our top level provider:
<Auth0Provider domain={domain} clientId={clientId}>
<Main />
</Auth0Provider>
Reproduction
Seems to happen randomly, a few times a week for affected users. So far we've only seen it on iOS.
Additional context
A similar issue happens when we use the react version, for both MacOS, iOS, and Windows devices. We allow overlap for expiring refresh tokens (120 seconds). Our refresh token are set to last one year, and we're currently seeing this multiple times a week for users.
react-native-auth0 version
5.1.0
React Native version
0.81.4
Expo version
Not using expo
Platform
iOS
Platform version(s)
Multiple
- 主要语言
- TypeScript
- 星标
- 553
- 派生
- 244
- 平均合并
- 19 小时
- 30 天内合并 PR
- 39
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
auth0/react-native-auth0 的其他 Issue
-
feature request
难度 4/5 3-5 天 新手友好度 52/100
auth0/react-native-auth0#1735 ·
维护者通常 1 天内回复
-
feature request
难度 5/5 一周以上 新手友好度 45/100
auth0/react-native-auth0#1458 · 8 条评论 · 3 个 reaction ·
维护者通常 1 天内回复
查看 auth0/react-native-auth0 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 75/100
milind-soni/OpenMausBot#6730 ·
维护者通常 1 天内回复
-
`@angular/[email protected]` depends on vulnerable Vite 7.3.7 - GHSA-p4f5-76q4-ffq7 (Critical RCE)未关闭area: @angular/build
难度 2/5 1-3 小时 新手友好度 65/100
angular/angular-cli#34764 ·
维护者通常 1 天内回复
-
status/need-triage
难度 2/5 1-3 小时 新手友好度 76/100
google-gemini/gemini-cli#30384 · 1 条评论 ·
维护者通常 1 天内回复
-
P2
难度 1/5 1 小时以内 新手友好度 84/100
维护者通常 1 天内回复
-
area:image documentation good first issue
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复