Skip to content

Commit 0360a1f

Browse files
authored
Fix constants in sample auth service (#25)
* ADD: constants for sample app * CHANGE: replace public key constant in the auth payload
1 parent 1715de5 commit 0360a1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Example/ImageKit/UploadAuthService.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class UploadAuthService {
1717
request.httpMethod = "POST"
1818
request.setValue("application/json", forHTTPHeaderField: "Content-Type")
1919
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 {
20+
guard let body = try? JSONSerialization.data(withJSONObject: ["uploadPayload": payload, "expire": 60, "publicKey": IK_PUBLIC_KEY] as [String : Any]) else {
2121
return nil
2222
}
2323
request.httpBody = body

0 commit comments

Comments
 (0)