How can I logout a user using the API?

Hello,

I am currently using Nextcloud as SSO for various web applications. I do get an access token with oauth but I cannot logout a user. And there is a requesttoken parameter on the logout button which prevents me from simply making an ajax request to disconnect the current user.

Anyone to help me with this?

I also have same problem, let me know if you found any solution.