ory/docs

Ory/client(1.1.7) User logout example not working

Closed this issue · 1 comments

Preflight checklist

Describe the bug

this example is not working:
https://www.ory.sh/docs/kratos/self-service/flows/user-logout#server-rendered-browser-applications

ory.createBrowserLogoutFlow(req.cookies["ory_kratos_session"]) change to ory.createBrowserLogoutFlow({
cookie: req.header("cookie"),
});

then it's working.

it takes me hours to resolve this issue.

Reproducing the bug

just follow the official example code.

Relevant log output

No response

Relevant configuration

No response

Version

ory/client 1.1.7

On which operating system are you observing this issue?

macOS

In which environment are you deploying?

None

Additional Context

No response

Thanks for the report, and sorry for your troubles. The docs are still a little bit of work in progress and some code examples aren't 100% there yet. We will fix this issue shortly. But contributions are always welcome.