Build secureFlows redirect-logout URL
secureflows_build_logout_urlBuilds a correct redirect-logout URL and refuses to build one that violates the two documented logout anti-patterns: a redirect_uri pointing at /callback (SPA callback handlers treat the tokenless return as a failed login and loop), and a redirect_uri that itself embeds session_token (silently renews the old session instead of signing out).
The result always instructs top-level navigation, never fetch/XHR — cross-site fetch() to this endpoint gets a 200 but browsers silently ignore its Clear-Site-Data header on cross-site responses, so the hosted-login cookie survives and the user silently re-authenticates on the next login redirect. This tool never builds a revoke request: revoke permanently destroys the user's data and must only run on an explicit "delete my account" action, never on ordinary sign-out.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| origin | No | secureFlows origin — always https://www.secure-flows.com in production | https://www.secure-flows.com |
| sessionToken | Yes | The current sessionToken to invalidate. | |
| postLogoutRedirectUri | Yes | Where the browser lands after logout completes — allowlisted, must NOT be /callback, and must NOT itself contain session_token. |