We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1715de5 commit 0360a1fCopy full SHA for 0360a1f
Example/ImageKit/UploadAuthService.swift
@@ -17,7 +17,7 @@ class UploadAuthService {
17
request.httpMethod = "POST"
18
request.setValue("application/json", forHTTPHeaderField: "Content-Type")
19
var tokenResponse: [String : String]? = nil
20
- guard let body = try? JSONSerialization.data(withJSONObject: ["uploadPayload": payload, "expire": 60, "publicKey": "IK_PUBLIC_KEY"] as [String : Any]) else {
+ guard let body = try? JSONSerialization.data(withJSONObject: ["uploadPayload": payload, "expire": 60, "publicKey": IK_PUBLIC_KEY] as [String : Any]) else {
21
return nil
22
}
23
request.httpBody = body
0 commit comments