Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
73c72bc
feat: auth-service v10 changes
grvgoel81 Apr 17, 2025
d01e486
feat: wallet-service and request fucntion changes added.
grvgoel81 Apr 17, 2025
34b9742
feat: example updated.
grvgoel81 Apr 17, 2025
29c158d
feat: bump auth-services version
grvgoel81 Apr 21, 2025
bfbf5cb
feat: bump auth-services version
grvgoel81 Apr 21, 2025
301fe71
feat: auth-service and wallet-service changes added.
grvgoel81 Apr 23, 2025
279f8c8
feat: Rename var names ChainConfig, network to web3AuthNetwork
grvgoel81 Apr 25, 2025
ae7bccc
feat: default value added for authConnectionConfig
grvgoel81 Apr 28, 2025
2943eb7
feat: changed authConnection jwt to custom
grvgoel81 Apr 29, 2025
472f1fb
feat: renaming variables
grvgoel81 May 14, 2025
d97e8d4
feat: Update Input config params
grvgoel81 May 14, 2025
0049a3b
feat: update wallet-services to v5 version
grvgoel81 May 14, 2025
cc37dfd
feat: update ExtraLoginOptions.cs
grvgoel81 May 15, 2025
2b48b3c
feat: update Web3AuthOptions
grvgoel81 May 15, 2025
d7dedde
feat: update Web3AuthOptions
grvgoel81 May 15, 2025
2512b38
feat: update Web3AuthResponse
grvgoel81 May 20, 2025
21f379a
feat: Update fetchprojectConfig API response, Web3AuthOptions.cs and …
grvgoel81 Jun 16, 2025
ed79bc4
feat: modify project config response
grvgoel81 Jul 28, 2025
9af6d7b
Update project config url and Web3Auth.cs
grvgoel81 Jul 28, 2025
70cae01
Update example
grvgoel81 Jul 28, 2025
5819fd6
feat: update example
grvgoel81 Jul 30, 2025
e1bfdce
Merge remote-tracking branch 'origin/feat/auth_service_v10_change_plu…
grvgoel81 Jul 30, 2025
b08607a
Merge branch 'master' into feat/auth_service_v10_change_plus_input_ch…
grvgoel81 Aug 4, 2026
b63cb27
reuse local redirect listener and normalize sessionIds
grvgoel81 Aug 13, 2026
c29f535
address cursor comments
grvgoel81 Aug 13, 2026
9dba82c
fix: pass authConnectionConfig as array in session options
grvgoel81 Aug 13, 2026
bb63900
fix: Android deep-link login and session origin handling
grvgoel81 Aug 13, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,7 @@ crashlytics-build.properties
ios-build/*
web3auth-android-build_*/
TestBuild_BackUpThisFolder_ButDontShipItWithYourGame/*
.DS_Store
.DS_Store
# TMP Essential Resources (imported locally; package is in Packages/manifest.json)
/[Aa]ssets/[Tt]ext[Mm]esh [Pp]ro/
/[Aa]ssets/[Tt]ext[Mm]esh [Pp]ro.meta
14 changes: 8 additions & 6 deletions Assets/Plugins/Android/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,12 @@
</intent>
</queries>
<application>
<activity android:name="com.unity3d.player.UnityPlayerActivity"
android:theme="@style/UnityThemeSelector">
<activity android:name="com.web3auth.unity.android.Web3AuthActivity"
android:theme="@style/UnityThemeSelector"
android:exported="true"
android:launchMode="singleTask"
android:configChanges="mcc|mnc|locale|touchscreen|keyboard|keyboardHidden|navigation|orientation|screenLayout|uiMode|screenSize|smallestScreenSize|fontScale|layoutDirection|density"
android:hardwareAccelerated="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
Expand All @@ -19,11 +23,9 @@
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="torusapp" android:host="com.torus.Web3AuthUnity"
android:pathPrefix="/auth"
android:pathPattern="/*" />
<data android:scheme="torusapp" android:host="com.torus.Web3AuthUnity" />
</intent-filter>
<meta-data android:name="unityplayer.UnityActivity" android:value="true" />
</activity>
</application>
</manifest>
</manifest>
59 changes: 59 additions & 0 deletions Assets/Plugins/Web3AuthSDK/Android/Web3AuthActivity.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
package com.web3auth.unity.android;

import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.util.Log;

import com.unity3d.player.UnityPlayerActivity;

/**
* Captures torusapp:// Custom Tab redirects. setIntent is required for singleTask + Unity deep links.
*/
public class Web3AuthActivity extends UnityPlayerActivity {
private static final String TAG = "Web3AuthActivity";
private static String pendingDeepLinkUrl;

public static synchronized String consumePendingDeepLinkUrl() {
String url = pendingDeepLinkUrl;
pendingDeepLinkUrl = null;
return url;
}

public static synchronized void setPendingDeepLinkUrl(String url) {
pendingDeepLinkUrl = url;
}

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
captureDeepLink(getIntent());
}

@Override
protected void onNewIntent(Intent intent) {
super.onNewIntent(intent);
setIntent(intent);
captureDeepLink(intent);
}

private void captureDeepLink(Intent intent) {
if (intent == null) {
return;
}
Uri data = intent.getData();
if (data == null) {
return;
}
String url = data.toString();
if (url == null || url.length() == 0) {
return;
}
if (!url.startsWith("torusapp://")) {
return;
}
Log.d(TAG, "Captured deep link: " + url);
setPendingDeepLinkUrl(url);
intent.setData(null);
}
}
32 changes: 32 additions & 0 deletions Assets/Plugins/Web3AuthSDK/Android/Web3AuthActivity.java.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Assets/Plugins/Web3AuthSDK/Api/Models/LogoutApiRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ public class LogoutApiRequest
public string signature { get; set; }
public long timeout { get; set; }
public string allowedOrigin { get; set; } = "*";
public string sessionNamespace { get; set; } = "";
}
14 changes: 11 additions & 3 deletions Assets/Plugins/Web3AuthSDK/Api/Models/ProjectConfigResponse.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Collections.Generic;
using Plugins.Web3AuthSDK.Types;

public class WhitelistResponse
{
Expand All @@ -8,9 +9,16 @@ public class WhitelistResponse

public class ProjectConfigResponse
{
public WhiteLabelData whitelabel { get; set; }
public bool? userDataInIdToken { get; set; } = true;
public int? sessionTime { get; set; } = 30 * 86400;
public bool? enableKeyExport { get; set; } = false;
public WhitelistResponse whitelist { get; set; }
public List<Chains> chains { get; set; }
public SmartAccountsConfig smartAccounts { get; set; }
public WalletUiConfig walletUiConfig { get; set; }
public List<AuthConnectionConfig> embeddedWalletAuth { get; set; }
public bool sms_otp_enabled { get; set; }
public bool wallet_connect_enabled { get; set; }
public string wallet_connect_project_id { get; set; }
public WhitelistResponse whitelist { get; set; }
public string walletConnectProjectId { get; set; }
public WhiteLabelData whitelabel { get; set; }
}
Loading