Inability to capture errors that come from underlying auth0 spa js package
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 42/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- react, typescript
- Área
- authentication, frontend
Línea de trabajo
Start by tracing how auth errors from the underlying auth0-spa-js package reach the React SDK, then check the SDK API documentation and existing error handling. The issue asks for a callback to handle those errors; done means the callback can receive them and callers can handle them, with tests covering the behavior. The payload does not identify a source file or test.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Checklist
- The issue can be reproduced in the auth0-react 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
I get this error often, the failed to fetch error. I understand that that cannot be solved, however I would like to handle it better then it just being thrown. Ideally for underlying errors there is a callback that we can attach to and handle the error ourselves.
if there is a solution here I am missing feel free to point it out
Error
Failed to fetch
mechanism
generic
handled
true
node_modules/@auth0/auth0-react/node_modules/@auth0/auth0-spa-js/dist/auth0-spa-js.production.esm.js:1:22246
in
o.port1.onmessage
{snip} geChannel;i.port1.onmessage=function(e){e.data.error?o(new Error(e.data.error)):n(e.data),i.port1.close()},t.postMessage(e,[i.port2])}),We=( {snip}
//# sourceMappingURL=auth0-spa-js.production.esm.js.map
Reproduction
this is intermittent and hard to reproduce
Additional context
No response
auth0-react version
2.30.0
React version
19.3.1
Which browsers have you tested in?
Chrome
- Lenguaje dominante
- TypeScript
- Estrellas
- 992
- Forks
- 292
- Merge medio
- 10 h 29 min
- PR fusionados (30 d)
- 24
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de auth0/auth0-react
-
Users getting logged out with "Unsuccessful Refresh Token exchange, reused refresh token detected"Abiertobug
Dificultad 4/5 3-5 días Aptitud para principiantes 38/100
auth0/auth0-react#929 · 19 comentarios · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
auth0/auth0-react#562 · 14 comentarios ·
Los mantenedores suelen responder en 1 día
Todos los issues de auth0/auth0-react
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
milind-soni/OpenMausBot#6730 ·
Los mantenedores suelen responder en 1 día
-
`@angular/[email protected]` depends on vulnerable Vite 7.3.7 - GHSA-p4f5-76q4-ffq7 (Critical RCE)Abiertoarea: @angular/build
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
angular/angular-cli#34764 ·
Los mantenedores suelen responder en 1 día
-
status/need-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
google-gemini/gemini-cli#30384 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
P2
Dificultad 1/5 Menos de una hora Aptitud para principiantes 84/100
Los mantenedores suelen responder en 1 día
-
area:image documentation good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día