Skip to main content

Authentication endpoints

Telegram Auth V3

This method authenticates player based on Telegram MiniApp’s init data, using assymetric encryption offered by Telegram account system.

  • Path: https://api.elympics.cc/v2/auth/user/telegram-auth-v3
  • Method: POST
  • Headers:
    • Elympics-Publisher-API-Key: YOUR_API_KEY

Ethereum-based auth

Players can also authenticate themselves using their Ethereum wallets. The process is described in a separate article.

Guest auth

Elympics-provided guest account system. Each account is identified by a string secret generated randomly on client instances.

Features offered by other forms of authentication like avatars are missing from the guest auth system.

tip

Making the generated secret persist allows users to keep their account. It is done by Elympics automatically on desktop and mobile builds, but not within Web apps.

As there is no official method of backing up the secret, it is restricted to a single installation (or Web session). If you want your players to keep their achievements across different devices, it's a good idea to offer them other forms of authentication: based on Telegram user ID or Ethereum wallet address.

  • Path: https://api.elympics.cc/v2/Auth/user/clientSecretAuth
  • Method: PUT
  • Headers:
    • Elympics-Publisher-API-Key: YOUR_API_KEY