K
Kinde4mo ago
Ricer

Flutter SDK with Encrypted Box

Hi, I implemented the encrypted box from the started kit in my app (ran await EncryptedBox.init(); in main.dart and placed encrypted_box.dart in the same dir as main.dart). From what I understood, when the access token expires, the interceptor leads to the returnAccessToken() function in the Encryptedbox class, but it never happens, and when open the app after the access token expires, I have to log in again. Any Idea why?
2 Replies
Ricer
RicerOP4mo ago
?
Ages
Ages2mo ago
Hi @Ricer
Thank you for your inquiry. To assist you effectively with the token expiration issue in your Flutter application, could you please provide the following details: Flutter SDK Version: You can find this by running flutter --version in your terminal. Dart SDK Version: This is typically included in the Flutter version output, but if needed, you can run dart --version. EncryptedBox Package Version: Specify the version of the EncryptedBox package you're using. HTTP Client Library: Are you using a specific HTTP client library (e.g., Dio, http) to manage API requests? Authentication Flow: A brief overview of your authentication process, including how tokens are obtained, stored, and refreshed. Error Messages or Logs: Any error messages or logs you've encountered related to token expiration or refresh failures. Providing this information will enable us to diagnose the issue more accurately and offer targeted solutions to ensure your application's token refresh mechanism functions as intended. If you have any further questions please don't hesitate to reach out

Did you find this page helpful?