FormidableLabs / FormidableLabs/react-native-app-auth

Logout crash on Android

オープン
#802 コメント 6 件 リアクション 5 件 担当者 0 名 GitHub で見る
主要言語
Java
スター
2.3k
フォーク
473
PR マージ指標
30日以内にマージされた PR はありません

説明

Hi to everyone, this is my first issue ever so let me know what can I do in order to give you every needed info. I have a problem with the logout function only on Android.

This is my code:

```
try {
const config = setConfig(authConfig);
const result = await logout(config, {
idToken,
postLogoutRedirectUrl: REDIRECT_URL,
});
return result;
} catch (e: any) {
console.log('logout error', e);
return null;
}
```

When I invoke that method, I get this error that is not caught by my catch block:
![Schermata 2023-01-16 alle 11 29 43](https://user-images.githubusercontent.com/44085676/212657169-1643d274-d819-46ba-8490-2bc56f225bc7.png)

When I remove the id token or the redirect url, the catch works correctly.

This is my config object (I can't share the exact values):

```
{
"redirectUrl": "myAndroidScheme",
"scopes": [
"openid",
"email",
"profile",
"offline_access"
],
"additionalParameters": {
"display": "popup",
"prompt": "login"
},
"clientAuthMethod": "post",
"warmAndPrefetchChrome": true,
"issuer": "myIssuer",
"clientId": "myClientID"
}
```

Here some extra infos:

- "react-native-app-auth": "^6.4.3"
- "react-native": "0.70.6"
- no Expo
- Emulated Android device with Android 10

Thanks!

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。