File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
AmplifyPlugins/Auth/Sources/AWSCognitoAuthPlugin Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 7
7
8
8
import Foundation
9
9
@_spi ( InternalAmplifyConfiguration) import Amplify
10
-
11
10
import AWSCognitoIdentity
12
11
import AWSCognitoIdentityProvider
13
12
import AWSPluginsCore
@@ -112,6 +111,9 @@ extension AWSCognitoAuthPlugin {
112
111
configuration. retryStrategyOptions = RetryStrategyOptions ( maxRetriesBase: Int ( maxRetryUnwrapped) )
113
112
}
114
113
114
+ let authService = AWSAuthService ( )
115
+ configuration. credentialsProvider = authService. getCredentialsProvider ( )
116
+
115
117
return CognitoIdentityProviderClient ( config: configuration)
116
118
default :
117
119
fatalError ( )
@@ -134,6 +136,9 @@ extension AWSCognitoAuthPlugin {
134
136
configuration. retryStrategyOptions = RetryStrategyOptions ( maxRetriesBase: Int ( maxRetryUnwrapped) )
135
137
}
136
138
139
+ let authService = AWSAuthService ( )
140
+ configuration. credentialsProvider = authService. getCredentialsProvider ( )
141
+
137
142
return CognitoIdentityClient ( config: configuration)
138
143
default :
139
144
fatalError ( )
You can’t perform that action at this time.
0 commit comments