XF 2.2 API to logout a user?

yar

Member
Is there API that would logout a user - invalidate all authenticated active sessions for the user. Need this to integrate into my main site 'logout' flow, so that user logouts in one place only.

Looked over documentation but did not find an answer.

Thanks!
 
Any information how can I logout a user outside of XenForo?

Cookies 'xf_user' and 'xf_session' are HttpOnly thus making things complicated when main app is SPA (single page app).

Would be great to have API similar to POST auth/login-token but POST auth/logOUT with the similar input parameters (user_id, return_url, force, limit_ip) and output (logout_url, expiry_date) but that will generate URL to logOUT a user instead of login. 🤷‍♂️
 
Back
Top Bottom