Native Android:
I am using the following GET@GET("/api/v3/teams/all_team_listings")
Promise<Object> getJoinedTeam(@Header("user") User user);
But I am getting this error:{"status_code":401,
"message":"Invalid or expired session, please login again.",
"id":"api.context.session_expired.app_error",
"is_oauth":false,
"detailed_error":"token=: cr-PoVvgO7I:APA91bFbekp7fIqZETF2-_rxiD_FwUYlIN9soS7U8cEALSKZwC8U2oXsSnMlyumL5qsglXW84Y8MwE5_UB1eJ8mjTsDiVdHLiSX0n9u8ad5LbHzjzs7B6RF2j0YQeeIsTK80D7kY41PO",
"request_id":"sfpb8dg6u3n7tp6zsfkx3q4x3e"}
The user has just logged in with the login api and all their credentials are saved. I don't understand because this is a GET request but it also says ApiUserRequired so I put the user in the header. I tried not having a header at all but then I get error: "Appears to be a CSRF attempt"
Any help would be appreciated.