Skip to content

Commit

Permalink
fix:(auth) TypeError when converting ActionCodeSettings to JS
Browse files Browse the repository at this point in the history
  • Loading branch information
josh-burton committed Sep 3, 2024
1 parent c70d498 commit 636c8c7
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -239,14 +239,16 @@ auth_interop.ActionCodeSettings? convertPlatformActionCodeSettings(

if (actionCodeSettingsMap['android'] != null) {
webActionCodeSettings.android = auth_interop.AndroidSettings(
packageName: actionCodeSettingsMap['android']['packageName'],
minimumVersion: actionCodeSettingsMap['android']['minimumVersion'],
installApp: actionCodeSettingsMap['android']['installApp']);
packageName: (actionCodeSettingsMap['android']['packageName'] as String?)?.toJS,
minimumVersion: (actionCodeSettingsMap['android']['minimumVersion'] as String?)?.toJS,
installApp: (actionCodeSettingsMap['android']['installApp'] as bool?)?.toJS,
);
}

if (actionCodeSettingsMap['iOS'] != null) {
webActionCodeSettings.iOS = auth_interop.IosSettings(
bundleId: actionCodeSettingsMap['iOS']['bundleId']);
bundleId: (actionCodeSettingsMap['iOS']['bundleId'] as String?)?.toJS,
);
}

return webActionCodeSettings;
Expand Down

0 comments on commit 636c8c7

Please sign in to comment.