FormidableLabs / FormidableLabs/react-native-app-auth

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

Open
#813 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
2.3k
Forks
473
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.