[Browser Logout Flow, Golang] Hi everyone, We're t...
# talk-kratos
g
[Browser Logout Flow, Golang] Hi everyone, We're trying to implement user logout flow for Browsers in Golang but getting
401 Unauthorized
error every time. This is what we're trying: 1. Calling the Logout Flow creation like this (cookies variable stores the ory_kratos_session and csrf_token cookies):
Copy code
flow, res, err := ory.FrontendApi.CreateBrowserLogoutFlow(ctx).Cookie(cookies).Execute()
2. Calling the logout flow update like this:
Copy code
res, err = ory.FrontendApi.UpdateLogoutFlow(ctx).Token(flow.GetLogoutToken()).Execute()
And then we got the error. How can you pass the cookies value to the
UpdateLogoutFlow
? It seems UpdateLogoutFlow require cookie values but we can not find the way to pass them. Somebody can help who has faced with a similar issue?