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

Authenticated route: allow easier use w/o mixin #1655

Merged
merged 1 commit into from
Aug 23, 2018

Conversation

mike-north
Copy link
Collaborator

Part of effort described in #1619
Supercedes #1628

* @param {Transition} transition Transition for the user's original navigation
* @param {(...args: []any) => any} callback Callback that will be invoked if the user is unauthenticated
*/
function runIfUnauthenticated(owner, transition, callback) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Once we have more of the simple-auth without mixins (#1619) story in place, we can start to carefully name these functions and export them from their respective modules. For now, we may want to leave these as module-private, and make a single "designing the public API" pass at the end

Copy link
Member

Choose a reason for hiding this comment

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

yep, I guess that makes sense. That will also probably be the hardest part about this - making sure ESA is still - despite to the relatively large number of things it does now - relatively easy to consume/integrate.

Copy link
Member

@marcoow marcoow left a comment

Choose a reason for hiding this comment

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

👍

@marcoow marcoow merged commit e289555 into mainmatter:master Aug 23, 2018
geekygrappler pushed a commit to geekygrappler/ember-simple-auth that referenced this pull request Aug 30, 2018
…s mixin into a function

- simple the same thing as mainmatter#1655 does for authenticated-route-mixin
marcoow pushed a commit that referenced this pull request Aug 31, 2018
…s mixin into a function (#1666)

- simple the same thing as #1655 does for authenticated-route-mixin
@mike-north mike-north mentioned this pull request Mar 11, 2019
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