# Local "invalid signature" error with \`@dfinity/auth-client\`

**URL:** <https://forum.dfinity.org/t/local-invalid-signature-error-with-dfinity-auth-client/18858>\
**Category:** Developers\
**Created:** [March 7, 2023, 4:28pm UTC](https://forum.dfinity.org/t/local-invalid-signature-error-with-dfinity-auth-client/18858 "2023-03-07T16:28:27Z")\
**Posts on this page:** 1\
**Showing post:** 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:** [March 7, 2023, 4:28pm UTC](https://forum.dfinity.org/t/local-invalid-signature-error-with-dfinity-auth-client/18858/1 "2023-03-07T16:28:27Z")

</div>

If you are experiencing “invalid signature” errors in your local environment, like I was for the past couple days, here’s the fix that worked for me! tldr: clear indexedDB from browser devtools. `@dfinity/auth-client` is lovely and caches your `DelegationIdentity` for you via indexedDB. However if you have a cached identity from a previous local replica, that replica will have a different public key and will cause “invalid signature” errors, since we are trying to certify responses with the public key of another chain. I hope this can save someone time 🙂

---

_[View the full topic](https://forum.dfinity.org/t/local-invalid-signature-error-with-dfinity-auth-client/18858)._
