You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to authenticate against a backend but am not sure on how to implement setting the http_cookie. (I think it should be handled by afnetworking itself?). The authentication itself works and while the app stays in the foreground I am authenticated. When I close the app the session seems to be cleared.
AFMotion::Client.build_shared(Web.base_url) do
header "Accept", "application/json"
response_serializer :json
end
And in my request:
AFMotion::Client.shared.get(url, data) do |response|
blk.call(response)
end
Or
AFMotion::Client.shared.post(url, data) do |response|
blk.call(response)
end
I can't figure out where to set the cookie header for the requests. Should I need to and if so where/how to configure this?
The text was updated successfully, but these errors were encountered:
I'm trying to authenticate against a backend but am not sure on how to implement setting the http_cookie. (I think it should be handled by afnetworking itself?). The authentication itself works and while the app stays in the foreground I am authenticated. When I close the app the session seems to be cleared.
And in my request:
Or
AFMotion::Client.shared.post(url, data) do |response|
blk.call(response)
end
I can't figure out where to set the cookie header for the requests. Should I need to and if so where/how to configure this?
The text was updated successfully, but these errors were encountered: