feat: bridge entitlements and admin portal from native SDKs (2.1.0)#78
Merged
dianaKhortiuk-frontegg merged 2 commits intoJun 25, 2026
Merged
Conversation
Bumps FronteggSwift 1.2.76 -> 1.3.6 and com.frontegg.sdk:android 1.3.18 ->
1.3.31, which is where the entitlements API and the embedded admin portal
landed on the native side. Adds a thin Capacitor bridge so JS callers can use
both features without touching native code.
New JS surface on FronteggService:
- loadEntitlements(forceRefresh?) — call after login and after switchTenant
- getFeatureEntitlement(key) -> { isEntitled, justification }
- getPermissionEntitlement(key) -> { isEntitled, justification }
- showAdminPortal() — Beta; presents AdminPortalView on iOS, starts
AdminPortalActivity on Android (declared by the SDK manifest)
Docs (usage.md) gain "Entitlements" and "Admin portal (Beta)" sections,
including the justification enum table. Version bumped to 2.1.0.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Resolved conflicts: - Admin portal: adopt master's openAdminPortal(); drop the branch's duplicate showAdminPortal() across TS, iOS (.swift/.m), Android (.java), docs. - Keep the branch's new entitlements API (loadEntitlements / getFeatureEntitlement / getPermissionEntitlement + Entitlement type). - Native SDK pins: take master's newer FronteggSwift 1.3.10 and com.frontegg.sdk:android 1.3.34. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
dianaKhortiuk-frontegg
added a commit
that referenced
this pull request
Jun 25, 2026
* docs: add Entitlements & Admin Portal to README; dedupe Native SDK versions Surface the two capabilities wired in #78 (entitlements + admin portal) on the README landing page, linking to the usage/advanced guides, and remove the duplicated 'Native SDK versions' section. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> * docs: fix 'scenarIonic' typo in README Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
FronteggSwift1.2.76 → 1.3.6 andcom.frontegg.sdk:android1.3.18 → 1.3.31, which is where the entitlements API and the embedded admin portal landed on the native side.New JS surface on
FronteggServiceEntitlementis{ isEntitled: boolean; justification?: string | null }wherejustificationis one ofENTITLEMENTS_DISABLED,ENTITLEMENTS_NOT_LOADED,MISSING_FEATURE,MISSING_PERMISSION, orNOT_AUTHENTICATED(iOS).Why now
A customer (Electronic Technologies, Vue + Capacitor) needs both features. The native SDKs have them merged on master; the Capacitor pin was just behind. This is the smallest bridge that unblocks them.
Native entry points used
FronteggAuth.loadEntitlements(forceRefresh:completion:),getFeatureEntitlements(featureKey:),getPermissionEntitlements(permissionKey:),AdminPortalView()presented in aUIHostingControllersheet overbridge.viewController.FronteggAuth.loadEntitlements(forceRefresh, completion),getFeatureEntitlements(key, null),getPermissionEntitlements(key, null),AdminPortalActivity.open(activity). The<activity>is declared in the Android SDK manifest, so host apps need no manifest change.Test plan
npm run verify(web + iOS pod install/xcodebuild + Android gradle build) passes against the new native pins.loadEntitlements()after login and afterswitchTenant(), thengetFeatureEntitlement('beta-dashboard')on a tenant that holds the feature and one that does not — confirmjustificationvalues.AdminPortalActivitylaunches and back/X both close.Notes
AdminPortalActivityandAdminPortalView.npm run build+npm run lintare green. Native verifies require a Capacitor host app (cap sync wires:capacitor-androidand runspod install), so CI is the source of truth for those.🤖 Generated with Claude Code