mirror of
https://github.com/minetest/contentdb.git
synced 2025-01-03 19:57:29 +01:00
OAuth2 docs: check access token + scopes
This commit is contained in:
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.
|
||||
|
Loading…
Reference in New Issue
Block a user