The Cardano dApp-Wallet Web Bridge exposes an
api.getRewardAddresses() function. This resolves to an array of stake keys, but I have only seen it contain one stake key in practice.
I'm developing a web app and want to store information about users' owned NFTs in a database. Can I use the first element in the stake keys/reward addresses array to identify the user, or should I show a dialogue window that allows the user to choose one? I am not aware of how most sites typically handle this.