Skip to content

v3.0.2

Latest

Choose a tag to compare

@github-actions github-actions released this 29 Oct 11:54
6f4ed9e

v3.0.2

Native SDKs are unchanged: iOS FronteggSwift 1.3.24, Android 1.3.43.

Features:

  • Passkeys: loginWithPasskeys() and registerPasskeys().
  • Silent re-authorization: requestAuthorize({ refreshToken, deviceTokenCookie? }) resolves the signed-in User.
  • getOrRefreshAccessToken() returns an access token valid for more than 15 seconds and refreshes it first when needed. Use it before API calls after the app resumes. FronteggService resolves string | null; the plugin method resolves { accessToken }. On Android, offline mode for this method is read from the FRONTEGG_ENABLE_OFFLINE_MODE BuildConfig field.

Bug fixes:

  • openAdminPortal (iOS and Android) and stepUp (Android) reject with the error code and message in the right order, so JavaScript no longer sees the code as the message.
  • selectedRegion is typed as the RegionConfig object the native side sends, instead of string. FronteggService.initWithRegion now skips the native call when that region is already selected; before, its check never matched. RegionConfig is exported.
  • initWithRegion rejects with INVALID_REGION for a key that is not configured, as React Native and Flutter do. Before, iOS passed it to the SDK and Android resolved without switching.
  • Android: refreshToken() waits for the refresh to finish and resolves { success } with its result. Before, it resolved as soon as the refresh started, so the token read right after it could still be the old one.
  • refreshToken() is typed Promise<{ success: boolean }>, the value it already resolved.
  • Android: switchTenant rejects when the switch fails, as on iOS. Before, it resolved { success: false }.
  • Android: stepUp and isSteppedUp honor maxAge, as on iOS. Before, Android ignored it and used the server's default freshness window.

Changes:

  • Android: new dependency org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.3, the version the Android SDK uses.

Note

Low Risk
No source or native code changes in the diff—only version metadata and changelog formatting.

Overview
This PR cuts the @frontegg/ionic-capacitor 3.0.2 release by bumping the package version from 3.0.1 to 3.0.2 in package.json and package-lock.json.

The changelog’s former Unreleased section is renamed to v3.0.2, and PR/issue links are stripped from those bullet points so the published notes read as a clean release entry (the listed features, bug fixes, and Android dependency note are unchanged in wording aside from link removal).

Reviewed by Cursor Bugbot for commit e080789. Bugbot is set up for automated code reviews on this repo. Configure here.