ambitious-apple-12419
05/11/2023, 7:37 AMbrowser logout
and i’m getting 401 Unauthorized
"reason":"No active session was found in this request.","message":"request does not have a valid authentication session"
But before that, i called is.oryAPI.FrontendApi.ToSession(ctx).Cookie(cookie).Execute() , and it is telling me that the session is active.
I also got the logouttToken and logOutUrl
Partial code
logoutFlow, res, err := is.oryAPI.FrontendApi.CreateBrowserLogoutFlow(ctx).Cookie(cookie).Execute()
// Error when trying to update logout flow
res, err = is.oryAPI.FrontendApi.UpdateLogoutFlow(ctx).Token(logoutFlow.LogoutToken).Execute()
Any idea what might’ve went wrong?ambitious-apple-12419
05/11/2023, 9:32 AMFrontendApi.UpdateLogoutFlow doesnt include cookie like other endpoint.
i modified it to include cookie and it just works. But the SDK doesnt have .Cookie() method.ambitious-apple-12419
05/15/2023, 6:56 AM