To use this token endpoint, add the following value to your website’s <head>
:
<link rel="token_endpoint" href="https://bonjour-indie.herokuapp.com/token">
Verify an access token
To verify the access token, make a GET
request to the token endpoint with the access token in the header:
GET https://bonjour-indie.herokuapp.com/token
Accept: application/json
Authorization: Bearer xxxxxxxx
This endpoint will then verify the token and respond with information about the user and scope:
HTTP/1.1 200 OK
Content-Type: application/json
{
"me": "https://yannickschutz.com",
"client_id": "https://bonjour-indie.herokuapp.com",
"scope": "create",
"issued_at": 1399155608,
"nonce": 501884823
}