base url: https://funnydefeat.pages.dev
authorization endpoint:
/oauth/authorize?response_type=code&client_id=YOUR_CLIENT_ID&redirect_uri=https://example.com/callback&scope=profile&state=RANDOM&code_challenge=BASE64URL_SHA256&code_challenge_method=S256
token endpoint:
POST /oauth/token
content-type: application/json
{
"grant_type": "authorization_code",
"client_id": "YOUR_CLIENT_ID",
"client_secret": "YOUR_CLIENT_SECRET",
"code": "AUTH_CODE",
"redirect_uri": "https://example.com/callback",
"code_verifier": "YOUR_CODE_VERIFIER"
}
userinfo endpoint:
GET /oauth/userinfo authorization: bearer ACCESS_TOKEN
refresh endpoint:
POST /oauth/token
content-type: application/json
{
"grant_type": "refresh_token",
"client_id": "YOUR_CLIENT_ID",
"client_secret": "YOUR_CLIENT_SECRET",
"refresh_token": "REFRESH_TOKEN"
}
revoke endpoint:
POST /oauth/revoke
content-type: application/json
{ "token": "ACCESS_OR_REFRESH_TOKEN" }