# Identity verification for signed-in users

Date: 2026-12-03 · Type: New · Applies to: console, api

You can now require identity verification, so a public key alone can no longer log in as another user or change their tags and opt-outs.

## Details

Your app's public key (**pf_pk_…**) ships inside the app, so anyone can extract it. With identity verification on, that key alone is no longer enough to act for a signed-in user.

How it works:

1. Generate an identity secret in the console under **Settings → Identity verification**. Keep it on your server only.
2. After your user signs in, your server computes **HMAC-SHA256(identity secret, externalId)** and gives the hash to your app.
3. Your app sends the hash in the **X-PushFire-Identity-Hash** header when it logs the user in to PushFire and when it changes that user's tags or profile.
4. Turn on **Require identity verification**. PushFire then refuses public-key calls for signed-in users that do not carry a valid hash (**401 identity_verification_required** or **identity_verification_failed**).

Anonymous users (device only) and calls made with your secret key need no hash. When you rotate the secret, the old one keeps working for 7 days.

Existing projects keep today's behavior until **December 3, 2027**. After that date, identity verification is required for every project. SDK support in the Swift and Flutter SDKs, and a hash function in the Firebase extension, follow in their next releases.

Source: https://www.pushfire.app/changelog/2026-12-03-identity-verification
