We would not approach it like this. We would require the user to opt into sharing their information with the game. We would expose it to the game developer as an itch.io JavaScript API where they can make an async request to get information about the current user.
Thanks