Connecting Accounts
- Lichess.org
- Chess.com
Connect your Lichess account with or without authentication:
With OAuth Login (Recommended)
Authorize in browser
En Croissant will open Lichess.org in your browser. Click “Authorize” to grant access with the following permission:
preference:read- Read your account preferences
OAuth authentication provides access to private games and detailed account statistics. The access token is stored securely on your device.
Without Login (Public Data Only)
Without authentication, only publicly available games and statistics can be imported.
OAuth Authentication Flow
For Lichess authentication, En Croissant implements a secure OAuth 2.0 flow:Security Features
- PKCE (Proof Key for Code Exchange): Protects against authorization code interception
- CSRF Token: Prevents cross-site request forgery attacks
- Local Callback Server: Temporary server on
127.0.0.1with random port - State Verification: Validates the OAuth response matches the request
Authentication Process
- Authorization Request: Opens Lichess.org with your username
- User Authorization: You approve access in the browser
- Callback: Lichess redirects to local server with authorization code
- Token Exchange: En Croissant exchanges code for access token
- Profile Fetch: Account details are retrieved using the token
OAuth Configuration
- Client ID:
org.encroissant.app - Authorization URL:
https://lichess.org/oauth - Token URL:
https://lichess.org/api/token - Scopes:
preference:read
Managing Connected Accounts
Player Aliases
When adding accounts, you can specify a custom “Player Name” (alias) to:- Track the same person across multiple accounts
- Use a preferred display name
- Group accounts by player for analysis
Account Information
Each connected account displays:- Platform: Lichess or Chess.com logo
- Username: Account username
- Rating: Current rating by game type
- Statistics: Games played, win/loss/draw record
- Last Updated: When data was last synced
Updating Account Data
Account data is fetched when:- The account is first added
- You manually refresh the account
- You open games from that account
Account data is cached locally. To see the latest games and ratings, refresh the account data.
Importing Games
Once accounts are connected, you can:Import Game Archives
- Select a connected account
- Choose a time period (month/year)
- Import all games from that period
- Games are saved to your local database
Filter Games
Filter imported games by:- Time control: Bullet, Blitz, Rapid, Classical, Correspondence
- Result: Win, Loss, Draw
- Color: White, Black
- Rating range: Specific ELO ranges
Automatic Analysis
Imported games can be:- Analyzed with chess engines
- Annotated with move quality
- Added to your opening repertoire
- Used for tactical puzzle generation
Database Integration
Connected accounts automatically create databases in En Croissant:- Location: Databases directory
- Format: SQLite database per account
- Content: All imported games with metadata
- Indexing: Optimized for position and opening searches
- Open the Accounts page
- Select an account
- Click “View Database”
Removing Accounts
To disconnect an account:- Select the account card
- Click the remove/delete option
- Confirm removal
Removing an account deletes the connection but preserves imported games in your databases. To delete the games, remove the associated database.
Privacy and Data Storage
Account data is stored locally:- Access tokens: Stored in browser localStorage
- Account info: Saved in
sessionsatom - Games: Stored in local SQLite databases
- No cloud sync: All data remains on your device
Telemetry
Account connections are not tracked if telemetry is disabled in Settings > Privacy.API Rate Limits
Lichess.org
- Public API: Generous rate limits for game import
- Authenticated: Higher limits with OAuth token
- Explorer API: Used for opening statistics
Chess.com
- Public API: Conservative rate limits
- Bulk Import: May take longer for large archives
- Game Format: PGN format with full metadata
If you encounter rate limit errors, wait a few minutes before retrying. En Croissant automatically handles rate limiting for normal usage.
Troubleshooting
Lichess Authentication Fails
- Check your internet connection
- Ensure default browser is set correctly
- Try adding without login (public data only)
- Restart En Croissant and retry
Chess.com Games Not Loading
- Verify the username is correct
- Check if the profile is public
- Wait if rate limited (retry after 5-10 minutes)
Account Shows Outdated Data
- Manually refresh the account
- Check internet connectivity
- Verify the account is still active on the platform