diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 58acc78..d9d5e27 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,6 +1,13 @@ name: CI -on: [push] +on: + pull_request: + types: [ opened, reopened, synchronize ] + branches: + - master + push: + branches: + - master jobs: test: diff --git a/src/commonMain/kotlin/com/liftric/cognito/idp/IdentityProviderClient.kt b/src/commonMain/kotlin/com/liftric/cognito/idp/IdentityProviderClient.kt index 067cdcb..a9fc72e 100644 --- a/src/commonMain/kotlin/com/liftric/cognito/idp/IdentityProviderClient.kt +++ b/src/commonMain/kotlin/com/liftric/cognito/idp/IdentityProviderClient.kt @@ -21,6 +21,7 @@ import kotlinx.serialization.json.Json open class IdentityProviderClient(region: String, clientId: String) : IdentityProvider { private val json = Json { allowStructuredMapKeys = true + ignoreUnknownKeys = true } private val configuration = Configuration(region, clientId) private val client = HttpClient { diff --git a/src/jsMain/kotlin/ResponseJS.kt b/src/jsMain/kotlin/ResponseJS.kt index 417c2ad..1bc48ec 100644 --- a/src/jsMain/kotlin/ResponseJS.kt +++ b/src/jsMain/kotlin/ResponseJS.kt @@ -99,7 +99,7 @@ data class AuthenticationResultJS( val TokenType: String, val NewDeviceMetadata: NewDeviceMetadataJS? = null ) -data class NewDeviceMetadatatJS( +data class NewDeviceMetadataJS( val DeviceGroupKey: String? = null, val DeviceKey: String? = null, )