Skip to content

Releases: frontegg/frontegg-android-kotlin

v1.2.26

03 Oct 14:50
198fe4a
Compare
Choose a tag to compare

FR-18199 - re-initialize encrypted shared preference if MasterKey is corrupted

v1.2.25

30 Sep 17:12
0fe6107
Compare
Choose a tag to compare

Security Updates

  • Update Security Dependencies (link):
    We have updated several security-related dependencies to their latest versions. This ensures that your application benefits from the latest security patches and improvements, enhancing overall security and stability.

Bug Fixes

  • Fix Race Condition in Direct Login Action (link):
    Resolved a race condition that occurred during the direct login process. The SDK now waits for the token exchange to complete before navigating to the authentication screen, preventing potential authentication errors and improving user experience.

Documentation Improvements

  • Update README.md (link):
    The README.md file has been updated to provide clearer instructions and updated examples. This will help you integrate and utilize the SDK more effectively in your projects.

v1.2.24

04 Sep 12:50
4e6e614
Compare
Choose a tag to compare

v1.2.24

v1.2.23

30 Aug 19:44
a0f34ef
Compare
Choose a tag to compare

What's New:

  • Improved React-Native Support:
    • Fixed the initialization order of observables to ensure compatibility with React-Native. This update resolves issues where observables were not initialized in the correct order, leading to improved stability and functionality when integrating the SDK with React-Native projects.

v1.2.22

30 Aug 08:53
ec80e6b
Compare
Choose a tag to compare

This release includes several key improvements and a critical bug fix in the Android Kotlin SDK. These updates enhance the token refresh mechanism, introduce robust error handling, and improve the overall reliability of the SDK.

Key Changes:

  1. Sustainable Token Refresh Mechanism:

    • Foreground: Implemented TimerTask to trigger immediate token refresh after the specified delay, ensuring timely execution without delays caused by JobScheduler's battery optimization.
    • Background: Utilized JobScheduler to handle token refresh in the background, conserving battery when the app is not in the foreground.
    • Retry Mechanism for Background Jobs: Introduced a retry mechanism that automatically retries the token refresh after 5 seconds if the background job fails.
    • Seamless Switching: Added logic to cancel the current timer or job and reschedule a new one based on the application’s state (foreground or background).
    • Edge Case Handling: Implemented logic to immediately refresh tokens if the remaining offset is below 15 seconds when transitioning from background to foreground, especially when token expiration is imminent (~800ms).
    • Token Refresh Status Check: Added support for checking if the token is currently being refreshed, allowing users to verify the refresh status before using the token.
  2. Fix for Infinite Loading State on OAuth/Authorize Error:

    • Resolved an issue where the application would enter an infinite loading state on the /oauth/authorize page when an error occurred.
    • This bug was introduced when changes were made to the error page in the hosted login webpage, causing the SDK to fail in catching and handling the error correctly.
    • The SDK now accurately identifies when the page contains an error while still on the /oauth/authorize path and displays the actual response received from the backend, preventing the infinite loading loop.

Impact:

These updates ensure a reliable and energy-efficient token refresh process across different app states, improve error handling during OAuth authorization, and prevent the infinite loading issue, thereby enhancing the overall user experience and robustness of the SDK.

v1.2.21

23 Aug 00:35
8f59d85
Compare
Choose a tag to compare

v1.2.21

  • Use JobScheduler instead of TimerTask for refreshing token

v1.2.20

31 Jul 22:10
ce4b221
Compare
Choose a tag to compare

v1.2.20

  • Clear Webview when detached from window

v1.2.19

24 Jul 10:21
7a2d8ba
Compare
Choose a tag to compare

v1.2.19

  • fix typo

v1.2.18

23 Jul 23:25
b520429
Compare
Choose a tag to compare

v1.2.18

  • Added support for Multi-App by specifying appId in the configuration.

v1.2.16

14 Jul 13:04
7f50416
Compare
Choose a tag to compare

v1.2.16

  • Add support for navigate to specific activity after authentication