Repository navigation
v3.0.2
Native SDKs are unchanged: iOS FronteggSwift 1.3.24, Android 1.3.43.
Features:
- Passkeys:
loginWithPasskeys()andregisterPasskeys(). - Silent re-authorization:
requestAuthorize({ refreshToken, deviceTokenCookie? })resolves the signed-inUser. 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.FronteggServiceresolvesstring | null; the plugin method resolves{ accessToken }. On Android, offline mode for this method is read from theFRONTEGG_ENABLE_OFFLINE_MODEBuildConfig field.
Bug fixes:
openAdminPortal(iOS and Android) andstepUp(Android) reject with the error code and message in the right order, so JavaScript no longer sees the code as the message.selectedRegionis typed as theRegionConfigobject the native side sends, instead ofstring.FronteggService.initWithRegionnow skips the native call when that region is already selected; before, its check never matched.RegionConfigis exported.initWithRegionrejects withINVALID_REGIONfor 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 typedPromise<{ success: boolean }>, the value it already resolved.- Android:
switchTenantrejects when the switch fails, as on iOS. Before, it resolved{ success: false }. - Android:
stepUpandisSteppedUphonormaxAge, 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.