Skip to main content

Create a Logout URL for Browsers

GET 

/auth/self-service/logout/browser

This endpoint initializes a browser-based user logout flow and a URL which can be used to log out the user.

This endpoint is NOT INTENDED for API clients and only works with browsers (Chrome, Firefox, ...). For API clients you can call the /logout/api URL directly with the Session Token.

The URL is only valid for the currently signed in user. If no user is signed in, this endpoint returns a 401 error.

When calling this endpoint from a backend, please ensure to properly forward the HTTP cookies.

Request

Query Parameters

    return_to string

    Return to URL

    The URL to which the browser should be redirected to after the logout has been performed.

Header Parameters

    cookie string

    HTTP Cookies

    If you call this endpoint from a backend, please include the original Cookie header in the request.

Responses

logoutFlow

Schema
    logout_token stringrequired

    LogoutToken can be used to perform logout using AJAX.

    logout_url stringrequired

    LogoutURL can be opened in a browser to sign the user out.

    format: uri

Loading...