# Embedding Everything login pending after submit

**URL:** <https://discuss.dev.twitch.com/t/embedding-everything-login-pending-after-submit/31574>\
**Category:** API\
**Created:** [May 6, 2021, 7:38am UTC](https://discuss.dev.twitch.com/t/embedding-everything-login-pending-after-submit/31574 "2021-05-06T07:38:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mike11185](https://avatars.discourse-cdn.com/v4/letter/m/4491bb/32.png) [@mike11185](https://discuss.dev.twitch.com/u/mike11185)\
**Post date:** [May 6, 2021, 7:38am UTC](https://discuss.dev.twitch.com/t/embedding-everything-login-pending-after-submit/31574/1 "2021-05-06T07:38:05Z")

</div>

Hi Twitch Developer forums,

I use Twitch.Embed to embed a page. Every thing like document [Everything | Twitch Developers](https://dev.twitch.tv/docs/embed/everything).

But when I send chat message and trigger login flow. It stop after enter twitchguard\_code.

 ![登入_-_Twitch](https://d2opxh93rbxzdn.cloudfront.net/original/2X/3/3b431181047479a738f5b1f9ff7c71f536833ab6.png)

I checked the network panel, login success and call gql api.

Logout and retry then stop after submit password.

It can’t close child window after login success.

this is demo page to reproduce: [https://demo.campaign.com.tw/twitch.html](https://demo.campaign.com.tw/twitch.html)  
(codepen & jsfiddle can’t demo because ‘allow-forms’)

Thanks.

---

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [May 6, 2021, 11:09am UTC](https://discuss.dev.twitch.com/t/embedding-everything-login-pending-after-submit/31574/2 "2021-05-06T11:09:30Z")

</div>

Sounds like a new version of

> <https://github.com/twitchdev/issues/issues/118>
>
> \*\*Brief description:\*\*
> The chat embed fails to log you in when you try to send …a chat message through it.
> 
> \*\*How to reproduce:\*\*
> 1. Use the chat embed "https://www.twitch.tv/embed/moocat/chat?parent=moo.bot&darkpopout=true" as an iframe.
> 2. Access the iframe embed on iOS.
> 3. Type a message and click the "Chat" button.
> 4. Click the "Log in" button.
> 5. Get redirected to the login in a separate window.
> 6. Complete the login.
> 7. Get redirected to the Twitch front page.
> 8. Go back to your original window, and see that it's still in the state of "Waiting for login from separate window..."
> 
> \*\*Expected behavior:\*\*
> At step 7-8 it should detect the log in instead of getting stuck.
> 
> !\[5359fee5d0aa5f0edd837a605473e90aa4fd2247\](https://user-images.githubusercontent.com/662289/82456095-0fe9e900-9ab4-11ea-963e-aaaa65d481d3.png)
> 
> !\[09d5b284f2849bc838e8bad2d546dc6d5c0cafd8\](https://user-images.githubusercontent.com/662289/82456103-14160680-9ab4-11ea-9e00-c8eb091859d0.png)

So you might want to add more information to this bug report

---

<div class="post-metadata">

**Author:** ![mike11185](https://avatars.discourse-cdn.com/v4/letter/m/4491bb/32.png) [@mike11185](https://discuss.dev.twitch.com/u/mike11185)\
**Post date:** [May 7, 2021, 7:46am UTC](https://discuss.dev.twitch.com/t/embedding-everything-login-pending-after-submit/31574/3 "2021-05-07T07:46:34Z")

</div>

Ok, I will reply some reproduce step to github. thanks.

---

<div class="post-metadata">

**Author:** ![system](https://d2opxh93rbxzdn.cloudfront.net/original/2X/0/05909729875cce3b53e59d5561c4d23bb14948fc.png) [@system](https://discuss.dev.twitch.com/u/system)\
**Post date:** [June 6, 2021, 7:47am UTC](https://discuss.dev.twitch.com/t/embedding-everything-login-pending-after-submit/31574/4 "2021-06-06T07:47:30Z")

</div>

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