Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Login flow and dialog implementation. #1310

Merged
merged 1 commit into from
Jan 6, 2016

Conversation

dvoytenko
Copy link
Contributor

No description provided.

}

/**
* Runs the Login flow. Returns a promise that is resolved if login succeeds
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would probably be nice to document what "Login" means in this context.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@dvoytenko
Copy link
Contributor Author

@cramforce PTAL. The changes:

  1. window.open in the same microtask via about:blank
  2. Dialog closing does not reject the promise - simply returns an empty result

return new Promise((resolve, reject) => {
this.resolve_ = resolve;
this.reject_ = reject;
this.openInternal_();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add comment that this must be called synchronously.

@cramforce
Copy link
Member

LGTM

dvoytenko added a commit that referenced this pull request Jan 6, 2016
Login flow and dialog implementation.
@dvoytenko dvoytenko merged commit 6055ccc into ampproject:master Jan 6, 2016
@dvoytenko dvoytenko deleted the access6 branch January 6, 2016 19:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants