-
Notifications
You must be signed in to change notification settings - Fork 602
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
show how to extend the session service in the README #2310
base: master
Are you sure you want to change the base?
Conversation
Continuing from my comment here, there isn't any info about this in the docs so yet. mainmatter#2285 (comment)
README.md
Outdated
* @var {Service} | ||
*/ | ||
handleAuthentication() { | ||
this.router.transitionTo('dashboard.boards'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would write super.handleAuthentication('dashboard.boards')
instead. That way, the default logic defined here is kept as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bertdeblock How would I pass owner
if I did that ?
export function handleSessionAuthenticated(owner, routeAfterAuthentication) {
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for sharing this! It helpt me a lot! |
Hi, it's been awhile, but I've updated the example to use super per @bertdeblock 's suggestion. |
Continuing from my comment here, there isn't any info about this in the docs so yet.
#2285 (comment)
As far as I understand this is the preferred way to set a
routeAfterAuthentication
so this should definitely be in the docs, right?