Disconnect
This function does not trigger any UI elements
Function that clears the user password saved in local storage. The user will be prompted to enter their password again the next time they try to interact with their wallet.
This function should be called when the user logs out of their account.
Task Disconnect()
This function has no arguments
None
1
using System;
2
using Metafi.Unity;
3
4
public class LogoutButton : MonoBehaviour {
5
public async void Logout(){
6
await MetafiProvider.Instance.Disconnect();
7
Debug.Log("Disconnect complete");
8
}
9
}
Last modified 3mo ago