Skip to content

Commit 0fe0c44

Browse files
committed
add async flavor of awscredentialsprovider (#137)
1 parent 7286691 commit 0fe0c44

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

AmplifyPlugins/Core/AWSPluginsCore/Auth/Provider/AuthAWSCredentialsProvider.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ public protocol AuthAWSCredentialsProvider {
1212
func getAWSCredentials() -> Result<AWSCredentials, AuthError>
1313
}
1414

15+
public protocol AWSCredentialsProvider {
16+
func fetchAWSCredentials() async throws -> AWSCredentials
17+
}
18+
1519
public protocol AWSTemporaryCredentials: AWSCredentials {
1620

1721
var sessionToken: String { get }

0 commit comments

Comments
 (0)