I am using web3 to connect to metamask using below method
await window.ethereum.request({ method: 'eth_requestAccounts' });
var address = await window.ethereum.request({ method: 'eth_accounts' });
but when i am refreshing screen it still shows as connected, i am not able to find any method in web3 to disconnect it from website like pancackeswap have