Skip to content

fix(android): align directLoginAction signature with the shared JS API#89

Merged
dianaKhortiuk-frontegg merged 3 commits into
masterfrom
fix/android-directloginaction-params
Jul 14, 2026
Merged

fix(android): align directLoginAction signature with the shared JS API#89
dianaKhortiuk-frontegg merged 3 commits into
masterfrom
fix/android-directloginaction-params

Conversation

@dianaKhortiuk-frontegg

Copy link
Copy Markdown
Collaborator
  • Fixed: the Android directLoginAction @ReactMethod now declares additionalQueryParams: ReadableMap?, matching the shared JS signature directLoginAction(type, data, ephemeralSession, additionalQueryParams). Previously Android declared only (type, data, ephemeralSession), so the trailing additionalQueryParams argument misaligned with the Promise slot.

Known limitation (documented, not fixed here): the native Android SDK's directLoginAction(activity, type, data) does not yet accept ephemeralSession or additionalQueryParams — iOS honors both. They are therefore accepted no-ops on Android until frontegg-android-kotlin adds support. ephemeralSession is inherently iOS-only here (Android runs the flow in the embedded WebView, not an ASWebAuthenticationSession browser session). Noted in the Kotlin bridge and the TS jsdoc.

Tracking issue for the native gap: (filed separately).

The JS directLoginAction(type, data, ephemeralSession, additionalQueryParams)
signature is shared across platforms, but the Android @ReactMethod declared only
(type, data, ephemeralSession), so the trailing additionalQueryParams argument
misaligned with the Promise slot. Declare additionalQueryParams: ReadableMap? so
the JS↔native mapping matches iOS.

The native Android SDK's directLoginAction(activity, type, data) does not yet
accept ephemeralSession/additionalQueryParams (iOS does), so they remain
accepted no-ops on Android until frontegg-android-kotlin adds support. Documented
in both the Kotlin bridge and the TS API.
@dianaKhortiuk-frontegg

Copy link
Copy Markdown
Collaborator Author

Native tracking issue for the Android additionalQueryParams/ephemeralSession gap: frontegg/frontegg-android-kotlin#269

Covers the signature-alignment fix: the JS directLoginAction forwards
type, data, ephemeralSession and additionalQueryParams to the native module,
and defaults ephemeralSession to true when omitted.
The push workflow linted and typechecked but never ran the jest suite, so unit
tests (e.g. FronteggNative bridging) were not enforced in CI. Add a Unit Tests
job that runs `yarn test`.
@dianaKhortiuk-frontegg
dianaKhortiuk-frontegg merged commit 3122304 into master Jul 14, 2026
7 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants