Verify a player
curl --request POST \
--url https://gamavas.fun/api/pass/v1/server/players/verify \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"accessToken": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({accessToken: '<string>'})
};
fetch('https://gamavas.fun/api/pass/v1/server/players/verify', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://gamavas.fun/api/pass/v1/server/players/verify"
payload = { "accessToken": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"playerId": "<string>",
"handle": "<string>",
"displayName": "<string>",
"avatarUrl": "<string>",
"email": "<string>",
"scopes": [
"<string>"
]
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Server
Verify a player
Send the access token your game got at sign-in. Only live tokens issued to your game are accepted, so your server can trust the answer. Profile and email follow the scopes the player approved.
POST
/
pass
/
v1
/
server
/
players
/
verify
Verify a player
curl --request POST \
--url https://gamavas.fun/api/pass/v1/server/players/verify \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"accessToken": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({accessToken: '<string>'})
};
fetch('https://gamavas.fun/api/pass/v1/server/players/verify', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://gamavas.fun/api/pass/v1/server/players/verify"
payload = { "accessToken": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"playerId": "<string>",
"handle": "<string>",
"displayName": "<string>",
"avatarUrl": "<string>",
"email": "<string>",
"scopes": [
"<string>"
]
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}
