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
onLogout should provide connection information #7397
Comments
Thanks for this feature request. I think this is reasonable, and this will likely be a candidate for
Specifically, try to work up a consensus (perhaps on the forums) of what fields would be most beneficial, etc. Shouldn't be too much to figure out here, but +1's accepted! |
Sounds good, thanks for the advice. I was under the impression onLogout was suppose to have a connection context, being analogous to onLogin, according to the patch notes and #7187, so I assumed there was already consensus and that the initial pull omitted this on accident. |
+1 |
I can volunteer to fix this. Please let me know if anyone else is working on it. Otherwise I'll start working on this early next week (7/18).. |
This issue is up for grabs! Well written pull-requests will be accepted if they meet the requirements. Please read Contributing, include new tests whenever possible, ask if you have implementation questions and reference this issue number when opening a pull request. 😄 You can run tests locally for the
|
+1 |
Please review my pull request for this bug at #7433 |
Close since the PR was merged. |
after logging in with twitter a hook is needed to cleanup before logging out. |
@interfaith It does exist as of 1.4 but apparently the docs for that feature did not get published when 1.4 came out. I'll see about getting that pushed to 1.4 docs, but meanwhile, you can view the commit here: meteor/docs@9072697 |
The onLogout hook was added with a comment that it was analogous to the onLogin hook:
https://github.com/meteor/meteor/blob/devel/History.md#v1331
I've tested it and it doesn't seem to provide session context analogous to the onLogin hooks.
The login hook code is as follows - 'packages/accounts-base/accounts_server.js' ->
line: 165
line 355:
this._successfulLogin(methodInvocation.connection, attempt);
The logout hook code is as follows - 'packages/accounts-base/accounts_server.js' ->
line 179:
line 535:
It would be useful to pass a connection context and perhaps also return the the userId of the person who logged out as an argument (it is currently cleared before the log out is called).
The text was updated successfully, but these errors were encountered: