# New version of ic-use-internet-identity published, v0.2.0

**URL:** <https://forum.dfinity.org/t/new-version-of-ic-use-internet-identity-published-v0-2-0/39806>\
**Category:** Developers\
**Created:** [January 7, 2025, 10:11pm UTC](https://forum.dfinity.org/t/new-version-of-ic-use-internet-identity-published-v0-2-0/39806 "2025-01-07T22:11:09Z")\
**Posts on this page:** 1\
**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:** [January 7, 2025, 10:11pm UTC](https://forum.dfinity.org/t/new-version-of-ic-use-internet-identity-published-v0-2-0/39806/1 "2025-01-07T22:11:09Z")

</div>

`useInternetIdentity` is a hook that makes it easy to integrate Internet Identity into your React application. It provides a simple interface for logging in and out with the Internet Identity service. In addition to the login functionality, the hook also provides login status updates for nice responsive UIs: `LoginStatus = "error" | "logging-in" | "success" | "idle"`

A new version is now available that fixes a bug that caused caching issues when switching between identities within the same app. This new version uses [xstate/store](https://www.npmjs.com/package/@xstate/store) for state management instead of React Context. If you have been struggling with unpredictable React state updates, this is the solution. Such a nice, tiny library!

The hook interface remains unchanged from previous versions so upgrades should be straight forward.

[https://www.npmjs.com/package/ic-use-internet-identity](https://www.npmjs.com/package/ic-use-internet-identity)

### Also..

Check out the demo application. The easiest way to get started with an IC app with II login is to fork the demo app.

Live demo: [https://x2jdf-giaaa-aaaal-qc66a-cai.icp0.io](https://x2jdf-giaaa-aaaal-qc66a-cai.icp0.io/)

 ![header](https://us1.discourse-cdn.com/flex023/uploads/dfn/original/3X/6/4/647ae19b60f0dc72512b1d4beb9c9822b6f2aaf2.jpeg)

> **[GitHub - kristoferlund/ic-use-internet-identity-demo: React/Vite template and demo. Use...](https://github.com/kristoferlund/ic-use-internet-identity-demo)**
>
> React/Vite template and demo. Use ic-use-internet-identity to authenticate IC users easily.
