OAuth2 docs: check access token + scopes

This commit is contained in:
rubenwardy 2023-10-31 18:58:37 +00:00
parent bc38094a41
commit 540603ed7a

@ -88,3 +88,17 @@ Possible errors:
* Missing code
* client_id and/or client_secret is incorrect
* Incorrect code. It may have already been redeemed
### Check access token
Next, you should check the access token works by getting the user information:
```bash
curl https://content.minetest.net/api/whoami/ \
-H "Authorization: Bearer YOURTOKEN"
```
## Scopes
OAuth2 applications can currently only access public user data, using the whoami API.