Skip to content

Commit

Permalink
add userNotFound parameter for cognito define auth challenge (#339)
Browse files Browse the repository at this point in the history
  • Loading branch information
hinoguma committed Nov 26, 2020
1 parent f24acb2 commit dda2bc7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions events/cognito.go
Expand Up @@ -183,6 +183,7 @@ type CognitoEventUserPoolsDefineAuthChallengeRequest struct {
UserAttributes map[string]string `json:"userAttributes"`
Session []*CognitoEventUserPoolsChallengeResult `json:"session"`
ClientMetadata map[string]string `json:"clientMetadata"`
UserNotFound bool `json:"userNotFound"`
}

// CognitoEventUserPoolsDefineAuthChallengeResponse defines auth challenge response parameters
Expand Down
Expand Up @@ -25,7 +25,8 @@
],
"clientMetadata": {
"exampleMetadataKey": "example metadata value"
}
},
"userNotFound": false
},
"response": {
"challengeName": "challengeName",
Expand Down

0 comments on commit dda2bc7

Please sign in to comment.