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 to Logout? #67

Closed
nidhiAscra opened this issue Dec 26, 2016 · 1 comment
Closed

How to Logout? #67

nidhiAscra opened this issue Dec 26, 2016 · 1 comment
Assignees

Comments

@nidhiAscra
Copy link

How do I add or find logout button inside ubar sdk.

@agraebe
Copy link
Contributor

agraebe commented Jan 3, 2017

@nidhiAscra If you're asking about how to generally maintain a UX that leverages the user information (if there is any), it highly depends on your code base. It depends on how you store your access_tokens. You could simple delete them for a user if requested.

However, you can simple have a button that removes that token you obtained for that user with the removeAccessToken method.

If you also want to revoke the access by invalidating the current token, you should call the /revoke endpoint as documented here. I created an enhancement request for this, so one could simply use a method provided by the SDK to accomplish that.

Let me know if you have further questions.

@agraebe agraebe closed this as completed Jan 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants