# Okta Sign-In Widget authClient not assignable

**URL:** <https://devforum.okta.com/t/okta-sign-in-widget-authclient-not-assignable/24701>\
**Category:** Questions\
**Created:** [June 28, 2023, 7:42am UTC](https://devforum.okta.com/t/okta-sign-in-widget-authclient-not-assignable/24701 "2023-06-28T07:42:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![AlexandreUnca](https://avatars.discourse-cdn.com/v4/letter/a/a9adbd/32.png) [@AlexandreUnca](https://devforum.okta.com/u/AlexandreUnca)\
**Post date:** [June 28, 2023, 7:42am UTC](https://devforum.okta.com/t/okta-sign-in-widget-authclient-not-assignable/24701/1 "2023-06-28T07:42:59Z")

</div>

Hello,  
I am trying to set up a sign in widget in angular.

[Sign in to your SPA with the embedded Okta Sign-In Widget | Okta Developer](https://developer.okta.com/docs/guides/sign-in-to-spa-embedded-widget) i am following this. i don’t realy know if i do it correctly because i start from a blanck angular project.

Anyway, in the login component in the constructor, in the “this.singIn” , i have a error on " authClient: oktaAuth" where authClient is a WidgetOktaAuthInterface and not a OktaAuth so i can’t assign it…

 ![image](https://global.discourse-cdn.com/oktadev/original/2X/e/e745dabb1818d1e8eaa693b96d741a6f025fa9e1.png)

Did i do something wrong?  
I am in Angular 16.

---

<div class="post-metadata">

**Author:** ![andrew1](https://avatars.discourse-cdn.com/v4/letter/a/9de053/32.png) [@andrew1](https://devforum.okta.com/u/andrew1)\
**Post date:** [June 28, 2023, 8:12am UTC](https://devforum.okta.com/t/okta-sign-in-widget-authclient-not-assignable/24701/2 "2023-06-28T08:12:09Z")

</div>

Hi,

I suggest you to follow first along the guide and use our Angular sample: [samples-js-angular/custom-login at master · okta/samples-js-angular · GitHub](https://github.com/okta/samples-js-angular/tree/master/custom-login)

upon completion you can check the differences in the configuration setup between the sample and your blank angular project it might be related to your imports or the way you have defined things.

---

<div class="post-metadata">

**Author:** ![AlexandreUnca](https://avatars.discourse-cdn.com/v4/letter/a/a9adbd/32.png) [@AlexandreUnca](https://devforum.okta.com/u/AlexandreUnca)\
**Post date:** [June 28, 2023, 9:45am UTC](https://devforum.okta.com/t/okta-sign-in-widget-authclient-not-assignable/24701/3 "2023-06-28T09:45:57Z")

</div>

I did… But i can’t figure what i am missing here

 ![image](https://global.discourse-cdn.com/oktadev/original/2X/1/1cab1a88b2629506d94c9486ec2bad2bc8763d82.png)

---

<div class="post-metadata">

**Author:** ![AlexandreUnca](https://avatars.discourse-cdn.com/v4/letter/a/a9adbd/32.png) [@AlexandreUnca](https://devforum.okta.com/u/AlexandreUnca)\
**Post date:** [June 28, 2023, 2:14pm UTC](https://devforum.okta.com/t/okta-sign-in-widget-authclient-not-assignable/24701/4 "2023-06-28T14:14:38Z")

</div>

Well, i was all up to date in the okta package… but i need to regress to version :  
“@okta/okta-angular”: “^6.0.0”,  
“@okta/okta-auth-js”: “7.0.2”,  
“@okta/okta-signin-widget”: “7.3.1”,

to make it works… this is kinda sad that i can’t update to lastest without any problems

---

<div class="post-metadata">

**Author:** ![andrea](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/andrea/32/2172_2.png) [@andrea](https://devforum.okta.com/u/andrea)\
**Post date:** [February 15, 2024, 5:58pm UTC](https://devforum.okta.com/t/okta-sign-in-widget-authclient-not-assignable/24701/5 "2024-02-15T17:58:05Z")

</div>

Closed on February 15, 2024, 5:58pm UTC


