Web3Api.account didn't change when I changed account via metamask

Web3Api.account didn’t change when I changed account via metamask. How can I get Web3Api. account update as I changed the metamask account

I find {user} also didn’t update, HOW CAN I UPDATE IT? THANK YOU

you can use a hook to run a function when the account is changed

what is web3api.ccount? you mean the default account address? that is from current authenticated user, and you can set it to a custom value