FormidableLabs / FormidableLabs/react-native-app-auth

'org.openid.appauth.general error -3' Intermittent issue

Abierto
#813 4 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Java
Estrellas
2.3k
Forks
473
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

## Issue

I'm currently using react-native-app-auth 6.4.3 and react native 0.70.6, and I'm using the react-native-app-auth authorization function as follows:

```
const config = {
authority: "x",
clientId: this.clientID,
clientSecret: this.clientSecret,
redirectUrl: this.redirectURI,
scopes: ["openid"],
loadUserInfo: false,
serviceConfiguration: {
authorizationEndpoint: authorizationEndpoint,
tokenEndpoint: tokenEndpoint
},
additionalParameters: {
},
clientAuthMethod: "",
dangerouslyAllowInsecureHttpRequests: false,
customHeaders: {
token: {},
authorize: {},
register: {},
},
additionalHeaders: {},
useNonce: false,
usePKCE: false,
skipCodeExchange: true,
connectionTimeoutSeconds: 60,
issuer: issuer
}

await authorize(config).then(async (res)=> {
.... //some stuff
})
.catch((err)=>console.log("ERROR:", err));
```

Sometimes I am able to log in as expected, but other times it catches the error, "The operation couldn’t be completed. (org.openid.appauth.general error -3.)". The issue is very intermittent. Is there a suggested fix for this issue?

---

## Environment

* **Platform that you're experiencing the issue on**: `iOS`
* **Are you using Expo?** `No`

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Start at the authorize(config) call and the iOS AppAuth error "org.openid.appauth.general error -3". Reproduce the intermittent failure with the supplied configuration, then trace the iOS authorization flow to determine the failing condition. Done means identifying a reliable cause and documenting or validating a fix for the intermittent error.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
javascript, react-native
Área
authentication, mobile
Tipo de issue
Error
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Necesita aclaración
Aptitud para principiantes
25/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.