# Angular social login

**URL:** <https://devforum.okta.com/t/angular-social-login/4607>\
**Category:** Questions\
**Created:** [March 25, 2019, 11:10am UTC](https://devforum.okta.com/t/angular-social-login/4607 "2019-03-25T11:10:50Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![vinay1](https://avatars.discourse-cdn.com/v4/letter/v/898d66/32.png) [@vinay1](https://devforum.okta.com/u/vinay1)\
**Post date:** [March 25, 2019, 11:10am UTC](https://devforum.okta.com/t/angular-social-login/4607/1 "2019-03-25T11:10:50Z")

</div>

hello,  
i am trying to implement social login in my application. i have the implemented [https://developer.okta.com/authentication-guide/social-login/google/](https://developer.okta.com/authentication-guide/social-login/google/) docs flow. everything work fine.  
i am getting the token in my url but nothing happens after that.  
i am getting error AuthSdkError: Unable to retrieve OAuth redirect params cookie

 ![Screenshot%20(98)](https://global.discourse-cdn.com/oktadev/original/2X/7/74ec3af30eedf10c22f12d43b6e357d2c1a85180.png)

is there something that i am missing or doing wrong ?  
note:  
href=“[https://dev-752434.oktapreview.com/oauth2/v1/authorize?idp=0oajx3fxqriyK](https://dev-752434.oktapreview.com/oauth2/v1/authorize?idp=0oajx3fxqriyK)…&client\_id=0oajfz87w6suo…&response\_type=id\_token token&response\_mode=fragment&scope=openid profile email&redirect\_uri=http://localhost:4200/implicit/callback&state=w123dsw&nonce=g5ly497e8ps”

redirect uri : [http://localhost:4200/implicit/callback](http://localhost:4200/implicit/callback)

the same redirect uri is working fine for normal login flow

---

<div class="post-metadata">

**Author:** ![dragos](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/dragos/32/1313_2.png) [@dragos](https://devforum.okta.com/u/dragos)\
**Post date:** [March 25, 2019, 11:38am UTC](https://devforum.okta.com/t/angular-social-login/4607/2 "2019-03-25T11:38:26Z")

</div>

Hi @vinay1

There is currently a feature gap when using social authentication with sign-in widget. The function redirectToIdp can not retrieve the tokens from Okta and pass them to the application in this use-case.

To resolve this issue, you need to set up a cookie called “okta-oauth-redirect-params”. You can find [here](https://github.com/dragosgaftoneanu-okta/sample-angular-custom-login-with-idp-discovery) an example to set up this cookie manually.

You can find more details about this issue below

> <https://github.com/okta/okta-signin-widget/issues/566>

---

<div class="post-metadata">

**Author:** ![vinay1](https://avatars.discourse-cdn.com/v4/letter/v/898d66/32.png) [@vinay1](https://devforum.okta.com/u/vinay1)\
**Post date:** [March 25, 2019, 11:50am UTC](https://devforum.okta.com/t/angular-social-login/4607/3 "2019-03-25T11:50:00Z")

</div>

hi dragos,  
thanks for the quick reply.

i am not using sign-in widget. i am using normal google login which uses (a href="").  
will it work for it also ?.

---

<div class="post-metadata">

**Author:** ![dragos](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/dragos/32/1313_2.png) [@dragos](https://devforum.okta.com/u/dragos)\
**Post date:** [March 25, 2019, 12:01pm UTC](https://devforum.okta.com/t/angular-social-login/4607/4 "2019-03-25T12:01:11Z")

</div>

Hi @vinay1

Can you please provide a snippet of your code to further review?

---

<div class="post-metadata">

**Author:** ![vinay1](https://avatars.discourse-cdn.com/v4/letter/v/898d66/32.png) [@vinay1](https://devforum.okta.com/u/vinay1)\
**Post date:** [March 25, 2019, 12:14pm UTC](https://devforum.okta.com/t/angular-social-login/4607/5 "2019-03-25T12:14:04Z")

</div>

i will try to recreate it on stackblitz.  
but just for reference i am using this

 ![Screenshot%20(99)](https://global.discourse-cdn.com/oktadev/original/2X/2/22816b3c7c3bf732e45fc866cd88b140a8a20a6f.png)  
html link method

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/oktadev/original/1X/589c4c5f80de422d01f47cee7185a7fb8227835c.png) [@system](https://devforum.okta.com/u/system)\
**Post date:** [January 17, 2024, 7:52pm UTC](https://devforum.okta.com/t/angular-social-login/4607/6 "2024-01-17T19:52:33Z")

</div>

Closed on January 17, 2024, 7:52pm UTC

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
