Closed GabrielePicco closed 1 year ago
Web3Auth UserInfo were not exposed after the login
Added a public userInfo field that can be accessed after the login:
As a simple example, a script can register to the OnLogin event and print the user email, if available.
public void Start() { Web3.OnLogin += OnLogin; } private void OnLogin(Account obj) { if(Web3.Wallet is Web3AuthWallet) Debug.Log(((Web3AuthWallet)Web3.Wallet).userInfo?.email); }
Expose Web3Auth user info
Problem
Web3Auth UserInfo were not exposed after the login
Solution
Added a public userInfo field that can be accessed after the login:
As a simple example, a script can register to the OnLogin event and print the user email, if available.