File tree Expand file tree Collapse file tree 2 files changed +7
-8
lines changed
Sources/AWSCognitoAuthPlugin/Support/Helpers
Tests/AWSCognitoAuthPluginUnitTests/Support Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -220,7 +220,7 @@ struct ConfigurationHelper {
220
220
AuthPluginErrorConstants . configurationMissingError
221
221
)
222
222
}
223
- let userPoolConfig = try parseUserPoolData ( config)
223
+ let userPoolConfig = parseUserPoolData ( config)
224
224
let identityPoolConfig = parseIdentityPoolData ( config)
225
225
226
226
return try createAuthConfiguration ( userPoolConfig: userPoolConfig,
@@ -281,11 +281,10 @@ struct ConfigurationHelper {
281
281
" verificationMechanism " : . array( verificationMechanisms) ] )
282
282
}
283
283
284
- return JSONValue . object (
285
- [ " auth " : . object(
286
- [ " plugins " : . object(
287
- [ " awsCognitoAuthPlugin " : . object(
288
- [ " Auth " : . object(
289
- [ " Default " : authConfigObject] ) ] ) ] ) ] ) ] )
284
+ return JSONValue . object ( [
285
+ " Auth " : . object( [
286
+ " Default " : authConfigObject
287
+ ] )
288
+ ] )
290
289
}
291
290
}
Original file line number Diff line number Diff line change @@ -246,7 +246,7 @@ final class ConfigurationHelperTests: XCTestCase {
246
246
] ) )
247
247
let json = ConfigurationHelper . createUserPoolJsonConfiguration ( config)
248
248
249
- guard let authConfig = json. auth ? . plugins ? . awsCognitoAuthPlugin ? . Auth? . Default else {
249
+ guard let authConfig = json. Auth? . Default else {
250
250
XCTFail ( " Could not retrieve auth configuration from json " )
251
251
return
252
252
}
You can’t perform that action at this time.
0 commit comments