Log Out
The Fortmatic SDK offers its own end point for logging users out of their Fortmatic wallets.
1
// Initialize provider
2
import Fortmatic from 'fortmatic';
3
import Web3 from 'web3';
4
​
5
const fm = new Fortmatic('YOUR_API_KEY');
6
window.web3 = new Web3(fm.getProvider());
7
​
8
fm.user.logout();
Copied!
Users will now once again, have to login via PIN in order to interact with Fortmatic SDK functionality.
Last modified 2yr ago
Copy link