Skip to content

Commit

Permalink
Fix constants in sample auth service (#25)
Browse files Browse the repository at this point in the history
* ADD: constants for sample app

* CHANGE: replace public key constant in the auth payload
  • Loading branch information
AniVerma17 authored Jun 7, 2024
1 parent 1715de5 commit 0360a1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Example/ImageKit/UploadAuthService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class UploadAuthService {
request.httpMethod = "POST"
request.setValue("application/json", forHTTPHeaderField: "Content-Type")
var tokenResponse: [String : String]? = nil
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 {
return nil
}
request.httpBody = body
Expand Down

0 comments on commit 0360a1f

Please sign in to comment.