# AUTH342: Account identity clash

## What this means[​](#what-this-means "رابط مباشر إلى What this means")

This account is already saved on this device under another store.

Every user account carries an identity that the WCPOS plugin creates once. Two stores can end up giving the same account the same identity:

* **One store is a copy of the other**, for example a staging site or a second shop started from a backup. The accounts on the copy keep the identities they had on the original.
* **Both stores are sites on one WordPress multisite network.** A network shares one set of accounts across all its sites.

The app keeps one saved account per identity, so it cannot hold both sign-ins at once. It refuses the second sign-in rather than letting it replace the first store's sign-in, which would leave neither store working.

The message names the store that already holds the account on this device.

## Your data[​](#your-data "رابط مباشر إلى Your data")

The refusal itself changes nothing: the saved account and its store were left exactly as they were, and nothing was saved for the store you tried to sign in to.

Removing the saved store, as the fix below does, is different. Sales still waiting to sync under that store stay on the device but are not picked up automatically once the store is added again. Check that the saved store has nothing left to sync before you remove it, or contact support first if it does.

## Troubleshoot[​](#troubleshoot "رابط مباشر إلى Troubleshoot")

**At the till:**

1. Make sure every sale on the saved store named in the message has synced. If sales are still waiting, sync them first, or contact support before going on.
2. On the connect screen, remove that saved store.
3. Sign in to the store you want.

You can keep only one of the two stores on this device while their accounts share an identity. A different device can hold the other store.

**On the copied store** — for whoever manages that WordPress site, to use both stores on one device:

1. Identify which of the two sites is the copy (usually the staging site or the newer shop).
2. On the copy: WP Admin → Plugins → update WCPOS to the latest version.
3. On the copy: make sure every till that uses it has synced its sales.
4. On the copy: WP Admin → WooCommerce → Status → Tools → **Reset WCPOS account identities**. Each account gets a new identity the next time it is used. With WP-CLI, `wp wcpos user-identity reset` does the same.
5. At each till that already uses the copy: remove that store and connect it again.

The tool is not offered on a WordPress multisite network, because a network shares its accounts across all its sites. There, keep one site per device.

**If the store moved to a new address:** the saved entry is the same store at its old address. Remove it, after the same check on unsynced sales, and sign in at the new address.

## Details[​](#details "رابط مباشر إلى Details")

* الرمز

  `AUTH342` (`CASHIER_IDENTITY_CLASH`)

* درجة الخطورة

  error

* تاريخ الإضافة

  WCPOS

  <!-- -->

  2.0.4
