FormidableLabs / FormidableLabs/react-native-app-auth
Logout action automatically redirect to the login page
- Dominant language
- Java
- Stars
- 2.3k
- Forks
- 473
- PR merge metrics
- No merged PRs in 30d
Description
## Issue
When we hit the logout function will open the login modal which is being navigate to the login screen. In this condition if the user adds the credential in that screen. We didn't get the tokens .
`Import {logout} from ‘react-native-app-auth’;`
` await logout(
{
...config,
additionalParameters: {
client_id: clientId,
response_type: 'code',
redirect_uri: redirectUrl,
},
},
{
idToken: idToken,
postLogoutRedirectUrl: redirectUrl,
},
); `
---
## Environment
* **Your Identity Provider**: `e.g. AWS cognito`
* **Platform that you're experiencing the issue on**: `Android and iOS both`
* **Your `react-native` Version**: `0.76.13
* **Your `react-native-app-auth` Version**: `8.0.1`
* **Are you using Expo?**: No
Contributor guide
Assessment
This issue has not been assessed yet.