I will update the plugin shortly for that. it’s not included in the current version.
in a glance, that would be done with destroying cookies or refresh? well… confused..
Wow Ali, thanks so much! If you wouldn’t mind, could you reply here once it’s updated?
Don’t worry, you will automatically get notification from WordPress plugin that a new version is available. I will release it tomorrow after updating some other things.
Thanks
Hello Ali, does this have logout api yet?
yes, clear_auth_cookie was added in the last release.
Hi!
I’m using this plugin but I don’t understand how logout works.
I’ve generated a new cookie, then I’ve validated it. Everything works well.
If I clear the cookie, I receive the following response: {“status”:”ok”,”valid”:false}
If I validate again the same cookie, I receive valid: {“status”:”ok”,”valid”:true}
Is that correct?
Thank you
Yes, that is bug and actually clear_auth_cookie is not working the way it is supposed to.
I will fix this issue in the next update.