Skip to content

Commit

Permalink
Add token security + revoking section
Browse files Browse the repository at this point in the history
  • Loading branch information
fitztrev committed May 11, 2024
1 parent 632ea63 commit 421748b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions doc/specs/lichess-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,13 @@ info:
- `curl https://lichess.org/api/account -H "Authorization: Bearer {token}"`
- [NodeJS example](https://github.com/lichess-org/api/tree/master/example/oauth-personal-token)
### Token Security
- Keep your tokens secret. Do not share them in public repositories or public forums.
- Do not hardcode tokens in your application. Use environment variables or a secure storage.
- If you suspect a token has been compromised, revoke it immediately.
To see your active tokens or revoke them, see [your Personal API access tokens](https://lichess.org/account/oauth/token).
### Authorization Code Flow with PKCE
The authorization code flow with PKCE allows your users to **login with Lichess**.
Lichess supports unregistered and public clients (no client authentication, choose any unique client id).
Expand Down

0 comments on commit 421748b

Please sign in to comment.