react-native-keycloak
react-native-keycloak copied to clipboard
On log in keycloak event returns AuthError : {"error": [TypeError: Network request failed], "error_description": "Failed to refresh token during callback processing"}
Describe the bug When I am trying to load my react-native app on android I am getting an error on onEvent in initOptions of ReactNativeKeycloakProvider as described below, AuthError : {"error": [TypeError: Network request failed], "error_description": "Failed to refresh token during callback processing"}
To Reproduce This is my App.js code -->
Expected behavior I need to log in and navigate to application Dashboard or SampleBlank screen(in my code above) on successful login
Screenshots
Smartphone
Emulator : API Level 28 Android OS React Native version : "^0.64.1"
Are you able to perform login and access the tokens?
You probably have misconfigured your auth domain. (Maybe you're trying to access your localhost keycloak from your emulator)
I'm having the same problem but only on android real device.
Same problem. I disabled keycloak client authentication and now it works.