diff --git a/android/src/main/java/com/glia/widgets/ionic/GliaSdk.java b/android/src/main/java/com/glia/widgets/ionic/GliaSdk.java index 137c441..1fb4e94 100644 --- a/android/src/main/java/com/glia/widgets/ionic/GliaSdk.java +++ b/android/src/main/java/com/glia/widgets/ionic/GliaSdk.java @@ -165,10 +165,10 @@ public void showVisitorCodeViewController(PluginCall call, Activity activity) { Authentication authentication; public void authenticate(PluginCall call) { String authRawBehaviorValue = call.getString("behavior"); - String jwtToken = call.getString("jwtToken"); + String jwtToken = call.getString("idToken"); if (jwtToken == null) { - call.reject("'jwtToken' is missing"); + call.reject("'idToken' is missing"); return; } if (authRawBehaviorValue == null) {