Skip to content

Commit 2c0295d

Browse files
committed
fix: marketing consent hack
1 parent d942218 commit 2c0295d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Packages/Passport/Runtime/Scripts/Private/PassportImpl.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,11 @@ private async UniTask LaunchAuthUrl()
298298
if (response != null && response.success == true && response.result != null)
299299
{
300300
var url = response.result.Replace(" ", "+");
301+
302+
// force marketing consent to true for now
303+
// TODO: remove this once we have a way to get the marketing consent from the user
304+
url = url + "&marketingConsent=opted_in";
305+
301306
#if UNITY_ANDROID && !UNITY_EDITOR
302307
loginPKCEUrl = url;
303308
SendAuthEvent(_pkceLoginOnly ? PassportAuthEvent.LoginPKCELaunchingCustomTabs : PassportAuthEvent.ConnectImxPKCELaunchingCustomTabs);
@@ -774,7 +779,7 @@ public interface PKCECallback
774779
{
775780

776781
/// <summary>
777-
/// Called when the Android Chrome Custom Tabs is hidden.
782+
/// Called when the Android Chrome Custom Tabs is hidden.
778783
/// Note that you won't be able to tell whether it was closed by the user or the SDK.
779784
/// <param name="completing">True if the user has entered everything required (e.g. email address),
780785
/// Chrome Custom Tabs have closed, and the SDK is trying to complete the PKCE flow.

0 commit comments

Comments
 (0)