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

Logging Out Of The App #3

Open
dominic-ks opened this issue Jan 31, 2017 · 0 comments
Open

Logging Out Of The App #3

dominic-ks opened this issue Jan 31, 2017 · 0 comments

Comments

@dominic-ks
Copy link
Owner

There is currently no specific provision for logging out of the application, and it is unclear how this should be handled on the WordPress site with the currently authorised application.

It would be possible to delete the stored credentials with localStorage.clear(); generically, or localStorage.remove(); but this will required you knowing the key where it is stored. Currently this is 'wp_rest_app_YOUR_APP_ID', which is set to allow multiple instances if required.

Once this information is deleted, any stored credentials can no longer be used as no one other than the WordPress site will know about them, so, while re-authorising is perfectly possible, logging in and out will create a large number of authorisation records for the same app in the users profile. This may not be an issue specifically but doesn't seem to be a tidy way of handling this. It could be possible to periodically remove the credentials from the WordPress site if they have not been used in x days.

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

1 participant