Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Lichess OAuth API with a personal token

You can make OAuth requests without going through the authorization code flow.

Instead, generate a personal token that you can directly use in API requests.

Be careful, these tokens are like passwords so you should guard them carefully. The advantage to using a token over putting your password into a script is that a token can be revoked, and you can generate lots of them.

Run this example

  1. Copy .env.default to .env
  2. Create a personal token
  3. Set the token in .env
  4. Install dependencies with npm install
  5. Run with node index.js