Closed jspizziri closed 5 months ago
Also, for context, I do have deep-linking setup via react-navigation
and, per the documentation, I'm using two different scheme's.
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:
com.myapp
com.myapp.auth
Your postLogoutRedirectUrl
needs to be like: com.myapp.auth://some_route
.
Issue
Calling
logout
on Android results inData intent null
error. I've taken a look at https://github.com/FormidableLabs/react-native-app-auth/issues/494 & https://github.com/FormidableLabs/react-native-app-auth/issues/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 tologout
.Environment
Keycloak
Android
react-native
Version:0.71.17
react-native-app-auth
Version:7.1.3