Skip to content

  • ```
  • API equivalence table

    Google Little X Little
    google.accounts.id.initialize(...) lxl.accounts.id.initialize(...)
    google.accounts.id.prompt(cb) lxl.accounts.id.prompt(cb)
    google.accounts.id.renderButton(el, opts) lxl.accounts.id.renderButton(el, opts)
    google.accounts.id.disableAutoSelect() lxl.accounts.id.disableAutoSelect()
    google.accounts.id.cancel() lxl.accounts.id.cancel()
    google.accounts.id.revoke(hint, done) lxl.accounts.id.revoke(hint, done)
    google.accounts.oauth2.initCodeClient(...) lxl.accounts.oauth2.initCodeClient(...)
    google.accounts.oauth2.initTokenClient(...) lxl.accounts.oauth2.initTokenClient(...)

    Server-side verification

    php $client = new Google_Client(['client_id' => GOOGLE_CLIENT_ID]); $payload = $client->verifyIdToken($_POST['credential']);

    php $client = new LXL\Id\Client(['client_id' => LXL_CLIENT_ID]); $payload = $client->verifyOneTap($_POST['credential']);

    The returned $payload array shape is the same standard OIDC claim set (sub, email, email_verified, name, picture, iss, aud, iat, exp, nonce).

    Things that are different

    Run both side-by-side

    If you want to support both Google and LXL during a transition:

    ```html

    ```

    The two SDKs do not collide — they live under separate global namespaces and use separate iframe origins.