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

How do you logout? #29

Open
BeayemX opened this issue Sep 22, 2017 · 1 comment
Open

How do you logout? #29

BeayemX opened this issue Sep 22, 2017 · 1 comment

Comments

@BeayemX
Copy link

BeayemX commented Sep 22, 2017

When I use the token to automatically login when my app starts. How do I log out to be able to use a different user?

I didn't find anything in the documentation. I was also looking through the classes in visual studio.

Usually I would call Meteor.Logout or maybe Accounts.Logout() but these methods don't exist

@BeayemX
Copy link
Author

BeayemX commented Sep 22, 2017

I solved it by doing the following

Method methodCall = Method.Call("logout");
yield return (Coroutine)methodCall;

I'm not sure if this is the right approach but it works.
It also does not clear the token stored in Accounts.Token.

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

No branches or pull requests

1 participant