FormidableLabs / FormidableLabs/react-native-app-auth

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

Aperta
#813 4 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Java
Stelle
2.3k
Fork
473
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

## 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`

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.