-
The official Android client does not require you to log in, and if you click the "quick pairing" button, you can start a game with another anonymous user right away. None of the two players had to log in with a Lichess.com account. If I create a client using only the official public Lichess API, is this possible to implement? I looked into the API document, and it seemed impossible, because the methods to accept an open-ended challenge or send board move required log-in credential (OAuth). I tried to look into the source code of the official Android client, but the source was too complicated for me to understand. Currently, I am assuming that this is impossible and the official Android client is using some sort of method that is specially allowed only for it, but if my assumption is wrong, please let me know which API methods I should use to implement a game of two anonymous users. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You can create a game that 2 anonymous players can join: https://lichess.org/api#tag/Challenges/operation/challengeOpen But the game will have to be played on Lichess, because as you noted, there are no ways to send moves through the API without a user account. You are correct to assume that the official mobile app uses a non-documented way of doing it, which we don't want third-party clients to use. |
Beta Was this translation helpful? Give feedback.
You can create a game that 2 anonymous players can join: https://lichess.org/api#tag/Challenges/operation/challengeOpen
But the game will have to be played on Lichess, because as you noted, there are no ways to send moves through the API without a user account.
You are correct to assume that the official mobile app uses a non-documented way of doing it, which we don't want third-party clients to use.