The signed-in player's profile
curl --request GET \
--url https://gamavas.fun/api/auth/oauth2/userinfo \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://gamavas.fun/api/auth/oauth2/userinfo', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://gamavas.fun/api/auth/oauth2/userinfo"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"sub": "<string>",
"preferred_username": "<string>",
"name": "<string>",
"picture": "<string>",
"email": "<string>"
}Sign-in
The signed-in player's profile
GET
/
auth
/
oauth2
/
userinfo
The signed-in player's profile
curl --request GET \
--url https://gamavas.fun/api/auth/oauth2/userinfo \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://gamavas.fun/api/auth/oauth2/userinfo', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://gamavas.fun/api/auth/oauth2/userinfo"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"sub": "<string>",
"preferred_username": "<string>",
"name": "<string>",
"picture": "<string>",
"email": "<string>"
}
