[Archive] Why getAccounts return array?

:classical_building: Archived Content from Web3Auth Community

This topic was originally posted by githubdiscussions on 9/6/2022.
This content has been migrated from our previous community forum to preserve valuable discussions.


After I am connected using web3Auth, I can get the user wallet address using getAccounts which will return me the array of addresses and the 1st entry in the array will be my wallet address.

My doubt is, why it is returning me an array? As per my observation, it always returns one wallet address in the array. And as I am connected using my google account, this should always return me one wallet address. So, if the array has more than 1 entry, than what are the other entries?



Originally posted by: KetulCodiste

Check the discussion at: https://github.com/orgs/Web3Auth/discussions/556