Back to all

Issue: median.auth.save() Succeeds but median.auth.get() cant retrieve the saved secret.

We’re using median to integrate biometric login in our app. Recently, the biometric auth module stopped returning the saved secret even though the save operation completes successfully. The biometric auth plugin is enabled, and the login url has been properly whitelisted.

I tried calling median.auth.save({ secret: secret }) It runs successfully with no errors, but later I can’t retrieve the saved data.


When I call median.auth.get({
callbackFunction: function(data) {
// data value:
// {“hasTouchId”: true, “hasAndroidFingerprint”: true, “hasSecret”: false, “supportedAndroidBiometrics”: [“strong”, “weak”]}
}
});
biometrics is not triggered and the returned result in the callback shows hasSecret: false, and the secret is blank.

Could you please help me understand why the saved secret couldnt be retrieved?