title: AMP login popup submit error
body: <p>I try to simulate AMP login/logout on my local, but not understand exactly what i must to do after popup login is submitted.</p>
  
  <p>I followed the example  when trying to simulate example from <a href="https://ampbyexample.com/samples_templates/comment_section/preview/" rel="nofollow noreferrer">https://ampbyexample.com/samples_templates/comment_section/preview/</a> and if submit validate the login, then i redirect to a page login-done.html?url={redirecturl}#success=true . {redirecturl} is the opener url .</p>
  
  <p>In this page (login-done.html?url={redirecturl}#success=true) I have added  .
  But nothing happen after redirect and have these errors:</p>
  
  <blockquote>
    <p>amp-login-done-0.1.js:57 Postback failed: Error: Timed out at
    amp-login-done-0.1.js:55 Uncaught (in promise) TypeError: Cannot set
    property 'onclick' of null at Gc.l (amp-login-done-0.1.js:57)</p>
  </blockquote>
  
  <p>I see that I get timeout because <a href="https://raw.githubusercontent.com/ampproject/amphtml/1493083583453/build/all/v0/amp-login-done-dialog.js" rel="nofollow noreferrer">https://raw.githubusercontent.com/ampproject/amphtml/1493083583453/build/all/v0/amp-login-done-dialog.js</a>" not found 404.</p>
  
  <p>If I refresh the main page (opener) the amp-access working. I reffer to the section:</p>
  
  <pre><code>&lt;section amp-access="NOT loggedIn" amp-access-hide role="button" tabindex="0"&gt;
      Please &lt;a class="btn" on="tap:amp-access.login-sign-in"&gt;Login&lt;/a&gt; to comment.
  &lt;/section&gt;
  &lt;section amp-access="loggedIn" amp-access-hide role="button" tabindex="0"&gt;
    &lt;a class="btn" on="tap:amp-access.login-sign-out"&gt;Logout&lt;/a&gt;
  &lt;/section&gt;
  </code></pre>
  
  <p>Of course, i can reload the opener and I get the "Logout" btn visible if login was successful, but in example seems that there is not a reload of the the main page and amp-access authorization is called from popup. Login/Logout buttons are changed without to refresh the page.</p>
  
  <p>I apreciate any help.</p>