Skip to content

Commit

Permalink
chore: kickoff release
Browse files Browse the repository at this point in the history
  • Loading branch information
thisisabhash authored Jun 13, 2024
2 parents b02045c + c719161 commit 05aba19
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

import Foundation
@_spi(InternalAmplifyConfiguration) import Amplify

import AWSCognitoIdentity
import AWSCognitoIdentityProvider
import AWSPluginsCore
Expand Down Expand Up @@ -112,6 +111,9 @@ extension AWSCognitoAuthPlugin {
configuration.retryStrategyOptions = RetryStrategyOptions(maxRetriesBase: Int(maxRetryUnwrapped))
}

let authService = AWSAuthService()
configuration.credentialsProvider = authService.getCredentialsProvider()

return CognitoIdentityProviderClient(config: configuration)
default:
fatalError()
Expand All @@ -134,6 +136,9 @@ extension AWSCognitoAuthPlugin {
configuration.retryStrategyOptions = RetryStrategyOptions(maxRetriesBase: Int(maxRetryUnwrapped))
}

let authService = AWSAuthService()
configuration.credentialsProvider = authService.getCredentialsProvider()

return CognitoIdentityClient(config: configuration)
default:
fatalError()
Expand Down

0 comments on commit 05aba19

Please sign in to comment.