Example: Login token
The token in this example allows the user "jerky" to sign in to the server. If you're using Unity Authentication Service for user management, put the UASID in the place of "jerky".
Note: UASIDs, also known as the PlayerID
within Authentication, is a random alphanumeric string of 28 characters used to identify users. Refer to How Authentication works for more information. UASIDs are required for using VATs with Unity Moderation services.
The token expiration time is September 17, 2020 at 1:30 PM UTC.
The token signing key is "secret!" (not including quotes).
Header
{}
Payload
Note: Spacing has been added to this code for demonstration purposes. You can also list claims in any order.
{
"iss":"blindmelon-AppName-dev",
"vxi":933000,
"vxa":"login",
"exp":1600349400,
"f":"sip:.blindmelon-AppName-dev.jerky.@tla.vivox.com"
}
Access token
e30.eyJpc3MiOiJibGluZG1lbG9uLUFwcE5hbWUtZGV2IiwidnhhIjoibG9naW4iLCJ2eGkiOjkzMzAwMCwiZXhwIjoxNjAwMzQ5NDAwLCJmIjoic2lwOi5ibGluZG1lbG9uLUFwcE5hbWUtZGV2Lmplcmt5LkB0bGEudml2b3guY29tIn0.5FKsAQz7bRQGGlSZw-KIcCmft7Ic6nT3Ih-TbdYPWwI