# New versions of ic-siwe React hooks and demo app

**URL:** <https://forum.dfinity.org/t/new-versions-of-ic-siwe-react-hooks-and-demo-app/28611>\
**Category:** Developers\
**Created:** [March 19, 2024, 7:03am UTC](https://forum.dfinity.org/t/new-versions-of-ic-siwe-react-hooks-and-demo-app/28611 "2024-03-19T07:03:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kristofer](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/kristofer/32/11135_2.png) [@kristofer](https://forum.dfinity.org/u/kristofer)\
**Post date:** [March 19, 2024, 7:03am UTC](https://forum.dfinity.org/t/new-versions-of-ic-siwe-react-hooks-and-demo-app/28611/1 "2024-03-19T07:03:58Z")

</div>

Hackers! I have released minor new versions of the ic-siwe React hook and the demo application.

## [ic-siwe-react-demo-rust](https://github.com/kristoferlund/ic-siwe-react-demo-rust) v0.0.4

Bye bye RainbowKit, hello nice looking custom connect dialogs. Live demo: [https://shtr2-2iaaa-aaaal-qckva-cai.icp0.io/](https://shtr2-2iaaa-aaaal-qckva-cai.icp0.io/)

 ![image](https://us1.discourse-cdn.com/flex023/uploads/dfn/original/3X/d/a/daa464a35b00e59787196fda43e95e4d1439f831.png)

### Added

- Removed RainbowKit from the codebase and instead built some custom connect and account dialog components using wagmi. Removing RainbowKit means removing one fairly large dependency that bundles a lot of css and code to support various eth wallets that you (most likely) don’t care about.

### Changed

- Upgraded wagmi to v2.5.7. This introduces TanStack Query as an additional dependency.
- Upgraded viem to v2.8.4

## [ic-use-siwe-identity](https://github.com/kristoferlund/ic-siwe/tree/main/packages/ic-use-siwe-identity) v0.0.10

Now you can `await` the login flow to complete instead of solely having to rely on the hook state variables.

### Changed

- The `login` function now returns a `Promise` that resolves to the `Identity` of the logged in user. New signature: `login: () => Promise<DelegationIdentity | undefined>`.
- Upgraded wagmi to v2.5.7.
  - This introduces TanStack Query as an additional dependency.
  - Also, this means the signture for `signMessageStatus` has changed slightly to `signMessageStatus: "error" | "idle" | "pending" | "success"`.

- Upgraded viem to v2.8.4

---

<div class="post-metadata">

**Author:** ![kristofer](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/kristofer/32/11135_2.png) [@kristofer](https://forum.dfinity.org/u/kristofer)\
**Post date:** [March 20, 2024, 7:05pm UTC](https://forum.dfinity.org/t/new-versions-of-ic-siwe-react-hooks-and-demo-app/28611/2 "2024-03-20T19:05:25Z")

</div>

ps. I started a Telegram group chat for IC-SIWE related announcements, support requests etc.

[https://t.me/+P\_KMk5F6mow3YzI0](https://t.me/+P_KMk5F6mow3YzI0)
