Skip to content

Commit ae56319

Browse files
committed
removing exception from getPrivKay and getEd25519PrivKey method
1 parent a0f70a0 commit ae56319

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Assets/Plugins/Web3AuthSDK/Web3Auth.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -419,15 +419,15 @@ private void sessionTimeOutAPI()
419419
public string getPrivKey()
420420
{
421421
if (web3AuthResponse == null)
422-
throw new Exception(Web3AuthError.getError(ErrorCode.NOUSERFOUND));
422+
return null
423423

424424
return web3AuthOptions.useCoreKitKey.Value ? web3AuthResponse.coreKitKey : web3AuthResponse.privKey;
425425
}
426426

427427
public string getEd25519PrivKey()
428428
{
429429
if (web3AuthResponse == null)
430-
throw new Exception(Web3AuthError.getError(ErrorCode.NOUSERFOUND));
430+
return null
431431

432432
return web3AuthOptions.useCoreKitKey.Value ? web3AuthResponse.coreKitEd25519PrivKey : web3AuthResponse.ed25519PrivKey;
433433
}

0 commit comments

Comments
 (0)