We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b11b388 commit e33aff2Copy full SHA for e33aff2
amplifyframework/src/commonMain/kotlin/com/jump/sdk/amplifyframework/CognitoKtor.kt
@@ -0,0 +1,22 @@
1
+package com.jump.sdk.amplifyframework
2
+
3
+import io.ktor.http.ContentType
4
5
+// Configure Ktor HttpClient with:
6
+// install(ContentNegotiation) {
7
+// json(
8
+// Json { ... },
9
+// contentType = AmzJson,
10
+// )
11
+// }
12
+// And then call with:
13
+// client.post(your cognito endpoint) {
14
+// contentType(AmzJson)
15
+// header(AmzActionHeader, CognitoAction.headerValue)
16
+// setBody(requestBody)
17
18
19
+object CognitoKtor {
20
+ val AmzJson = ContentType("application", "x-amz-json-1.1")
21
+ const val AmzTargetHeader = "X-Amz-Target"
22
+}
0 commit comments