I am getting "Missing auth token" even though i am using a correct one.
singh-s-sachin opened this issue · comments
let headers = [
"Authorization": "f49f383b-0710-494c-ad79-76cdf3970c53",
"Content-type": "application/json"
]
Alamofire.request("https://run.glot.io/languages/python/latest", method: .post, parameters: body , encoding: JSONEncoding.default, headers: headers).responseJSON
this is my code snippet
@singh-s-sachin how did you resolve it?
Try in this way
let headers : [String : String] = [
"Content-type": "application/json",
"Authorization":"Token f49f383b-0710-494c-ad79-76cdf3970c53"
]