# SSO Logout URL?

**URL:** <https://community.directus.com/t/sso-logout-url/344>\
**Category:** Help\
**Created:** [May 16, 2025, 11:58am UTC](https://community.directus.com/t/sso-logout-url/344 "2025-05-16T11:58:14Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![kanekoshoyu](https://sea2.discourse-cdn.com/flex002/user_avatar/community.directus.com/kanekoshoyu/32/861_2.png) [@kanekoshoyu](https://community.directus.com/u/kanekoshoyu)\
**Post date:** [September 4, 2025, 9:24pm UTC](https://community.directus.com/t/sso-logout-url/344/4 "2025-09-04T21:24:11Z")

</div>

Found the fix.

After more than a day of struggle chatting with ChatGPT with trial and error questioning my life decision, I found that I just need to add below as POST request body

```auto
{"mode": "session"}

```

Basically there are 3 modes in directus

- “json“ // more for debugging/testing I guess, no one wants to deal with tokens directly
- “cookie“ // deprecating it by not allowing it in UI
- “session” // the one we should go

and with session, the session token in cookie includes the refresh\_token, so you will only see `directus_session_token`

 ![Screenshot 2025-09-04 at 23.15.55](https://us1.discourse-cdn.com/flex002/uploads/directus/original/1X/f2ddaff56064b7aad4273730b0c0856f14ad9d23.png)

---

_[View the full topic](https://community.directus.com/t/sso-logout-url/344)._
