# Production “invalid signature” error with \`@dfinity/auth-client\`

**URL:** <https://forum.dfinity.org/t/production-invalid-signature-error-with-dfinity-auth-client/50321>\
**Category:** Developers\
**Created:** [June 10, 2025, 7:33pm UTC](https://forum.dfinity.org/t/production-invalid-signature-error-with-dfinity-auth-client/50321 "2025-06-10T19:33:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jorgenbuilder](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/jorgenbuilder/32/22166_2.png) [@jorgenbuilder](https://forum.dfinity.org/u/jorgenbuilder)\
**Post date:** [June 10, 2025, 7:33pm UTC](https://forum.dfinity.org/t/production-invalid-signature-error-with-dfinity-auth-client/50321/1 "2025-06-10T19:33:51Z")

</div>

We have seen a few instances of an “Invalid signature” error pop up on our production domains recently. We’ve seen this locally before (caused by identities being stored from old replicas, [forum post](https://forum.dfinity.org/t/local-invalid-signature-error-with-dfinity-auth-client/18858/1)) …but seeing this in prod is new, and I’m not sure what could be causing the issue.

We haven’t been able to reproduce it ourselves, but we’ve heard that wiping out indexeddb does fix the issue. Has anyone experienced this issue before, and perhaps found the cause?

It started recently with (seemingly) no obvious commits in our identity provider code to point to as a root cause. We’ve been using basically the same `agent-js` / `@dfinity/auth-client` powered auth code for several years. 🤔

```auto
Invalid signature: Invalid basic signature: EcdsaP256 signature could not be verified: public key 0418...f79b, signature 480f...cd87, error: verification failed

```

---

<div class="post-metadata">

**Author:** ![sea-snake](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/sea-snake/32/7243_2.png) [@sea-snake](https://forum.dfinity.org/u/sea-snake)\
**Post date:** [June 10, 2025, 7:40pm UTC](https://forum.dfinity.org/t/production-invalid-signature-error-with-dfinity-auth-client/50321/2 "2025-06-10T19:40:50Z")

</div>

Are you using agent-js `2.1.3` or `2.2.0`?

Those are known versions that could have signature issues on retries.

---

<div class="post-metadata">

**Author:** ![jorgenbuilder](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/jorgenbuilder/32/22166_2.png) [@jorgenbuilder](https://forum.dfinity.org/u/jorgenbuilder)\
**Post date:** [June 10, 2025, 7:51pm UTC](https://forum.dfinity.org/t/production-invalid-signature-error-with-dfinity-auth-client/50321/3 "2025-06-10T19:51:51Z")

</div>

Interesting that those versions have known signature issue. I’m on `1.2.0`. Might be time to bump versions.

---

<div class="post-metadata">

**Author:** ![drewbikscube](https://avatars.discourse-cdn.com/v4/letter/d/ecb155/32.png) [@drewbikscube](https://forum.dfinity.org/u/drewbikscube)\
**Post date:** [July 2, 2025, 11:55pm UTC](https://forum.dfinity.org/t/production-invalid-signature-error-with-dfinity-auth-client/50321/4 "2025-07-02T23:55:46Z")

</div>

(post deleted by author)
