Skip to main content

wallet_revokeSession

The wallet_revokeSession method revokes the entire active session.
note

MetaMask doesn't support session IDs.

Parameters

This method doesn't accept any parameters.

Returns

wallet_revokeSessionResult boolean

Errors

Code
Message
5000
Unknown error with request
Customize request
Parameter
Value
Connect your MetaMask wallet to run requests successfully.
Request
await window.ethereum.request({
"method": "wallet_revokeSession",
"params": [],
});
Example response
true