At the moment we don’t provide API for fetching user’s credentials directly in the browser right now. It’s something we do want to add in the future, but it will come with a permissions dialog to ensure that no info about the current account is leaked to the game.