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

[Android] logut() - Data intent null #986

Closed
jspizziri opened this issue Jun 8, 2024 · 2 comments
Closed

[Android] logut() - Data intent null #986

jspizziri opened this issue Jun 8, 2024 · 2 comments

Comments

@jspizziri
Copy link
Contributor

Issue

Calling logout on Android results in Data intent null error. I've taken a look at #494 & #958 but this seems to be sightly different. Authorization is working completely fine for me, its just logout.

Backstory is that I previously was using revoke but recently upgraded to logout.


Environment

  • Your Identity Provider: Keycloak
  • Platform that you're experiencing the issue on: Android
  • Your react-native Version: 0.71.17
  • Your react-native-app-auth Version: 7.1.3
  • Are you using Expo?: No
@jspizziri
Copy link
Contributor Author

Also, for context, I do have deep-linking setup via react-navigation and, per the documentation, I'm using two different scheme's.

@jspizziri
Copy link
Contributor Author

Actually, after playing around with it for a bit, I think I found the issue.

It seems that the postLogoutRedirectUrl needs to reference your "Auth" scheme, and referencing your deep-link scheme causes the issue, which makes sense. So in the scenario where:

  • Deep-link scheme: com.myapp
  • Auth scheme: com.myapp.auth

Your postLogoutRedirectUrl needs to be like: com.myapp.auth://some_route.

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