@@ -94,7 +94,7 @@ void Start()
94
94
{"CUSTOM_VERIFIER", loginConfigItem}
95
95
}
96
96
*/
97
- clientId = "BPi5PB_UiIZ-cPz1GtV5i1I2iOSOHuimiXBI0e-Oe_u6X3oVAbCiAZOTEBtTXw4tsluTITPqA8zMsfxIKMjiqNQ " ,
97
+ clientId = "BFuUqebV5I8Pz5F7a5A2ihW7YVmbv_OHXnHYDv6OltAD5NGr6e-ViNvde3U4BHdn6HvwfkgobhVu4VwC-OSJkik " ,
98
98
buildEnv = BuildEnv . TESTING ,
99
99
redirectUrl = new Uri ( "torusapp://com.torus.Web3AuthUnity/auth" ) ,
100
100
network = Web3Auth . Network . SAPPHIRE_DEVNET ,
@@ -103,6 +103,7 @@ void Start()
103
103
web3Auth . onLogin += onLogin ;
104
104
web3Auth . onLogout += onLogout ;
105
105
web3Auth . onMFASetup += onMFASetup ;
106
+ web3Auth . onSignResponse += onSignResponse ;
106
107
107
108
emailAddressField . gameObject . SetActive ( false ) ;
108
109
logoutButton . gameObject . SetActive ( false ) ;
@@ -116,7 +117,6 @@ void Start()
116
117
mfaSetupButton . onClick . AddListener ( enableMFA ) ;
117
118
launchWalletServicesButton . onClick . AddListener ( launchWalletServices ) ;
118
119
signMessageButton . onClick . AddListener ( request ) ;
119
- signResponseButton . onClick . AddListener ( getSignResponse ) ;
120
120
121
121
verifierDropdown . AddOptions ( verifierList . Select ( x => x . name ) . ToList ( ) ) ;
122
122
verifierDropdown . onValueChanged . AddListener ( onVerifierDropDownChange ) ;
@@ -155,6 +155,10 @@ private void onMFASetup(bool response) {
155
155
Debug . Log ( "MFA Setup: " + response ) ;
156
156
}
157
157
158
+ private void onSignResponse ( SignResponse signResponse )
159
+ {
160
+ Debug . Log ( "Retrieved SignResponse: " + signResponse ) ;
161
+ }
158
162
159
163
private void onVerifierDropDownChange ( int selectedIndex )
160
164
{
@@ -273,16 +277,4 @@ public string getPublicAddressFromPrivateKey(string privateKeyHex)
273
277
274
278
return publicAddress ;
275
279
}
276
-
277
- public void getSignResponse ( ) {
278
- SignResponse signResponse = Web3Auth . getSignResponse ( ) ;
279
- if ( signResponse != null )
280
- {
281
- Debug . Log ( "Retrieved SignResponse: " + signResponse ) ;
282
- }
283
- else
284
- {
285
- Debug . Log ( "SignResponse is null" ) ;
286
- }
287
- }
288
280
}
0 commit comments