@refined-kangaroo-48640 Thanks for clarifying. I see that in the selfservice-ui example they seem to be in the frontend though?
https://github.com/ory/kratos-selfservice-ui-node/blob/647f272b847790287ee96175b6b6145eb6b2ff0b/src/routes/logout.ts#L28
Or is that code running on the backend (not an SPA)? If it is in the backend, it doesn't appear to be authorized, which defeats the point? My current issue is all in our case of this happens in the context of an SPA so I'm missing if there's a pattern to call and authorize this backend API or if it's just up to the implementor. See diagram and red items below: