# ? For toniq team: attempting to integrate stoicIdentity but am getting error with idlFactory

**URL:** <https://forum.dfinity.org/t/for-toniq-team-attempting-to-integrate-stoicidentity-but-am-getting-error-with-idlfactory/15402>\
**Category:** Developers\
**Created:** [September 13, 2022, 5:48pm UTC](https://forum.dfinity.org/t/for-toniq-team-attempting-to-integrate-stoicidentity-but-am-getting-error-with-idlfactory/15402 "2022-09-13T17:48:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jesse](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/jesse/32/37836_2.png) [@Jesse](https://forum.dfinity.org/u/Jesse)\
**Post date:** [September 13, 2022, 5:48pm UTC](https://forum.dfinity.org/t/for-toniq-team-attempting-to-integrate-stoicidentity-but-am-getting-error-with-idlfactory/15402/1 "2022-09-13T17:48:57Z")

</div>

Hey, @bob11 , I’m trying to implement the usage of the StoicIdentity client, but I’m running into a problem with the `idlFactory` variable that is passed into the `Actor.createActor` function. [GitHub - Toniq-Labs/stoic-identity: Identity for DFINITY's IC HttpAgent (to connect to a Stoic wallet via Stoic Connect)](https://github.com/Toniq-Labs/stoic-identity#readme:~:text=const%20actor%20%3D%20Actor.createActor)

the error that the browser console is throwing is :  
`App.jsx:80 Uncaught TypeError: Assignment to constant variable.`

In the example you all provide, I don’t see any definition for the `idlFactory`. I’ve attempted to import all `idlFactory`’s that are included in the declarations files and all of them throw errors. Where can i import the `idlFactory` variable or find the definition for it?

---

<div class="post-metadata">

**Author:** ![bob11](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/bob11/32/1979_2.png) [@bob11](https://forum.dfinity.org/u/bob11)\
**Post date:** [September 15, 2022, 10:12pm UTC](https://forum.dfinity.org/t/for-toniq-team-attempting-to-integrate-stoicidentity-but-am-getting-error-with-idlfactory/15402/2 "2022-09-15T22:12:48Z")

</div>

Hey! DM me on Twitter and I can help you. Probably a better place to discuss than here in the forum. @BobBodily on Twitter. Thanks!

---

<div class="post-metadata">

**Author:** ![Jesse](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/jesse/32/37836_2.png) [@Jesse](https://forum.dfinity.org/u/Jesse)\
**Post date:** [September 15, 2022, 10:46pm UTC](https://forum.dfinity.org/t/for-toniq-team-attempting-to-integrate-stoicidentity-but-am-getting-error-with-idlfactory/15402/3 "2022-09-15T22:46:43Z")

</div>

Thanks @bob11 .

I don’t have a Twitter account already, but I’ve been meaning to make one for my app. I’m gonna make one and reach out to you. So don’t be alarmed if someone with 0 followers inboxes you.
