Fortmatic
Website
Dashboard
Support
Search…
v2.x
🚀
Get Started
📦
Install with NPM
🧩
Examples
💬
FAQ
📈
Migrating from v1.x
Web3 Integration
Web3 Provider
Network Configuration
Binance Smart Chain
Get User Account
Send Ether Transaction
Smart Contract Functions
User Signing
SDK Error Handling
Batch Request
Smart Contract
ERC20 Transfer
ERC20 Approve
ERC20 TransferFrom
Generic Contract Call
Fortmatic Native
Log In
Log Out
Is User Logged In
Compose Transaction
Deposit Address
Configuration
More
Fiat On-ramp
Domain Verification
Powered By
GitBook
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.
Fortmatic Native - Previous
Log In
Next - Fortmatic Native
Is User Logged In
Last modified
2yr ago
Copy link