Ory/client(1.1.7) User logout example not working
Closed this issue · 1 comments
sxhuan commented
Preflight checklist
- I could not find a solution in the existing issues, docs, nor discussions.
- I agree to follow this project's Code of Conduct.
- I have read and am following this repository's Contribution Guidelines.
- This issue affects my Ory Network project.
- I have joined the Ory Community Slack.
- I am signed up to the Ory Security Patch Newsletter.
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
jonas-jonas commented
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.