-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: Unable to decrypt ProviderConfiguration the key used may be invalidated. Please clear data and try again. null #173
Comments
Hi @ksenia834 It sounds like release is failing but debug works? Can you send your proguard file? |
@FeiChen-okta I have the same issue in my project Environment
|
Hi @FeiChen-okta only the exception with token reproduces in Release mode. Method getUserProfile sends error in both Debug and Release modes. Here the content from proguard.pro:
here the content from proguard-project.txt:
Thank you for your help |
@ksenia834 This doesn't sound like a proguard issue but if you can add @bedirguven @ksenia834 Does clearing the cache help? |
@FeiChen-okta Thanks for the advice, unfortunately modifying the proguard didn't help. I've found another step to reach this case:
If try to logout and login again - the token then received correctly. |
Hi @ksenia834 It looks like your app has allowBackup set to true in AndroidManifest. If you uninstall the app and install again then If it is returning true then it still have encrypted data from the previous install. The private keys from the previous install is invalidated. No way of recovering that encrypted data so you should clear the data once that error happens. If you want to allowBackup of your apps data and not the SDK data please refer to the following |
Hi @FeiChen-okta ,I am also getting same exception, in my case I am using bio-metric and refresh token. |
Hi @gopalp1709 Any changes to the device the next day? For example are you adding/removing fingerprint or ping? And what devices is this failing on? |
Hi @FeiChen-okta , I am using following dependencies and Realme XT device (Android 10 ,API 29). Also I am setting bio-metric by using below function And then on biometric success executing these lines: Thanks |
Hi @gopalp1709 When is setBiometric method called? It should only be called when the user confirms to use it. In the samples it uses a CheckBox to turn on/off biometric and saves this option in sharedprefs.
|
Hi @FeiChen-okta , Above exception occured while fetching getProfile after biometric success.Even my refresh token is not working to get new session unless I clear storage. |
Were you able to reach any solution? My scenario is exactly the same as yours @gopalp1709 |
Hey all. I'm also trying to integrate biometric authentication and I'm getting the same issue. sessionClient.isAuthenticated returns true but I'm facing the same issue when trying to get RefreshToken. How to fix this? |
Describe the bug
During implementation new feature, we've faced few issues, that seems related:
getUserProfile
,refreshToken
requests return error "Unable to decrypt ProviderConfiguration the key used may be invalidated. Please clear data and try again. null"It seems similar issue was already reported and closed in 1.0.5 version #113, but for us it still reproduces on 1.0.13
To Reproduce issue 1
Observed Behavior
Error "Unable to decrypt ProviderConfiguration the key used may be invalidated. Please clear data and try again. null" ocured
Expected Behavior
Received User's profile information
To Reproduce issue 2
Observed Behavior
Application crash with exception:
Expected Behavior
User's accessToken (if available) and no crash
Code Snippet
Refresh token:
Get user profile:
Get access token of successfully signed-in users:
Environment
Device Information
The text was updated successfully, but these errors were encountered: