@@ -18,10 +18,10 @@ struct Cognito {
18
18
)
19
19
req. application. cognito. authenticatable = CognitoAuthenticatable ( configuration: awsCognitoConfiguration)
20
20
let response = try await req. application. cognito. authenticatable. authenticate ( username: username, password: password)
21
- try awsClient. syncShutdown ( )
21
+ try await awsClient. shutdown ( )
22
22
return response
23
23
} catch {
24
- try awsClient. syncShutdown ( )
24
+ try await awsClient. shutdown ( )
25
25
throw error
26
26
}
27
27
}
@@ -39,9 +39,9 @@ struct Cognito {
39
39
)
40
40
req. application. cognito. authenticatable = CognitoAuthenticatable ( configuration: awsCognitoConfiguration)
41
41
let _ = try await req. application. cognito. authenticatable. authenticate ( accessToken: sessionID, on: req. eventLoop)
42
- try awsClient. syncShutdown ( )
42
+ try await awsClient. shutdown ( )
43
43
} catch {
44
- try awsClient. syncShutdown ( )
44
+ try await awsClient. shutdown ( )
45
45
throw error
46
46
}
47
47
}
@@ -59,9 +59,9 @@ struct Cognito {
59
59
)
60
60
req. application. cognito. authenticatable = CognitoAuthenticatable ( configuration: awsCognitoConfiguration)
61
61
_ = try await req. application. cognito. authenticatable. signUp ( username: username, password: password, attributes: [ : ] , on: req. eventLoop)
62
- try awsClient. syncShutdown ( )
62
+ try await awsClient. shutdown ( )
63
63
} catch {
64
- try awsClient. syncShutdown ( )
64
+ try await awsClient. shutdown ( )
65
65
throw error
66
66
}
67
67
}
@@ -79,9 +79,9 @@ struct Cognito {
79
79
)
80
80
req. application. cognito. authenticatable = CognitoAuthenticatable ( configuration: awsCognitoConfiguration)
81
81
try await req. application. cognito. authenticatable. forgotPassword ( username: username)
82
- try awsClient. syncShutdown ( )
82
+ try await awsClient. shutdown ( )
83
83
} catch {
84
- try awsClient. syncShutdown ( )
84
+ try await awsClient. shutdown ( )
85
85
throw error
86
86
}
87
87
}
@@ -99,9 +99,9 @@ struct Cognito {
99
99
)
100
100
req. application. cognito. authenticatable = CognitoAuthenticatable ( configuration: awsCognitoConfiguration)
101
101
try await req. application. cognito. authenticatable. confirmForgotPassword ( username: username, newPassword: password, confirmationCode: confirmationCode)
102
- try awsClient. syncShutdown ( )
102
+ try await awsClient. shutdown ( )
103
103
} catch {
104
- try awsClient. syncShutdown ( )
104
+ try await awsClient. shutdown ( )
105
105
throw error
106
106
}
107
107
}
@@ -119,9 +119,9 @@ struct Cognito {
119
119
)
120
120
req. application. cognito. authenticatable = CognitoAuthenticatable ( configuration: awsCognitoConfiguration)
121
121
try await req. application. cognito. authenticatable. confirmSignUp ( username: username, confirmationCode: confirmationCode)
122
- try awsClient. syncShutdown ( )
122
+ try await awsClient. shutdown ( )
123
123
} catch {
124
- try awsClient. syncShutdown ( )
124
+ try await awsClient. shutdown ( )
125
125
throw error
126
126
}
127
127
}
@@ -140,9 +140,9 @@ struct Cognito {
140
140
req. application. cognito. authenticatable = CognitoAuthenticatable ( configuration: awsCognitoConfiguration)
141
141
let request = try CognitoIdentityProvider . DeleteUserRequest ( accessToken: req. auth. require ( AuthenticatedUser . self) . sessionID)
142
142
try await req. application. cognito. authenticatable. configuration. cognitoIDP. deleteUser ( request)
143
- try awsClient. syncShutdown ( )
143
+ try await awsClient. shutdown ( )
144
144
} catch {
145
- try awsClient. syncShutdown ( )
145
+ try await awsClient. shutdown ( )
146
146
throw error
147
147
}
148
148
}
0 commit comments