FormidableLabs / FormidableLabs/react-native-app-auth
'org.openid.appauth.general error -3' Intermittent issue
- Vorherrschende Sprache
- Java
- Sterne
- 2.3k
- Forks
- 473
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
## 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`
Beitragsleitfaden
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- javascript, react-native
- Bereich
- authentication, mobile
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 25/100