beta feature to get a user's player ID, for external linking with whatever you want

Send people to [<https://gather.town/getPublicId>](<https://gather.town/getPublicId>) with query parameter redirectTo pointing back to your site. For example:

<https://gather.town/getPublicId?redirectTo=https%3A%2F%2Fexample.com%3Fnonce%3D2345678%26>

(the last part was generated with encodeURIComponent("<https://example.com?nonce=145315460239&>"))

Gather will prompt the user to allow access to their playerId and then redirect them to:

`${redirectTo}gatherPlayerId=${playerId}`

<aside> ‼️ SECURITY IS LEFT UP TO YOU: in its simplest form, people can fake their Gather IDs by merely going to example.com?gatherPlayerId=whatever-I-want

</aside>

The nonce param is included in the example redirect url to offer an idea for how to secure this. One way is to include a random one-time code when you send them to [gather.town/getPublicId](<http://gather.town/getPublicId>)—if someone tries to use a code that doesn't exist or has already been used, you know it's not legit.