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 77
88import Foundation
99@_spi ( InternalAmplifyConfiguration) import Amplify
10-
1110import AWSCognitoIdentity
1211import AWSCognitoIdentityProvider
1312import AWSPluginsCore
@@ -112,6 +111,9 @@ extension AWSCognitoAuthPlugin {
112111 configuration. retryStrategyOptions = RetryStrategyOptions ( maxRetriesBase: Int ( maxRetryUnwrapped) )
113112 }
114113
114+ let authService = AWSAuthService ( )
115+ configuration. credentialsProvider = authService. getCredentialsProvider ( )
116+
115117 return CognitoIdentityProviderClient ( config: configuration)
116118 default :
117119 fatalError ( )
@@ -134,6 +136,9 @@ extension AWSCognitoAuthPlugin {
134136 configuration. retryStrategyOptions = RetryStrategyOptions ( maxRetriesBase: Int ( maxRetryUnwrapped) )
135137 }
136138
139+ let authService = AWSAuthService ( )
140+ configuration. credentialsProvider = authService. getCredentialsProvider ( )
141+
137142 return CognitoIdentityClient ( config: configuration)
138143 default :
139144 fatalError ( )
You can’t perform that action at this time.
0 commit comments