react-native-keycloak icon indicating copy to clipboard operation
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"}

Open poojalivin opened this issue 2 years ago • 3 comments

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 -->

prcAppjs.txt

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"

poojalivin avatar Oct 21 '22 06:10 poojalivin

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)

VictorHaine avatar Jan 05 '23 15:01 VictorHaine

I'm having the same problem but only on android real device.

wolfzer44 avatar Mar 29 '23 00:03 wolfzer44

Same problem. I disabled keycloak client authentication and now it works.

image

francesc79 avatar Apr 16 '23 15:04 francesc79