Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logout action automatically redirect to the login page #1053

Open
lkumarrx opened this issue Jan 28, 2025 · 0 comments
Open

Logout action automatically redirect to the login page #1053

lkumarrx opened this issue Jan 28, 2025 · 0 comments

Comments

@lkumarrx
Copy link

lkumarrx commented Jan 28, 2025

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant