CredentialsProvider
public protocol CredentialsProvider : AnyObject
Interface common to credential providers. Mainly used for mocking AWS Cognito credentials provider.
-
getIdentityId()
AsynchronousRetrieves and returns the identity ID associated with the temporary credential used for accessing certain backend resources, e.g. large blobs stored in AWS S3.
Declaration
Swift
func getIdentityId() async throws -> String
Return Value
Identity ID.
-
Returns the identity ID cached during sign in.
Declaration
Swift
func getCachedIdentityId() -> String?
Return Value
Identity ID.
-
Resets the internal state.
Declaration
Swift
func reset()
-
Clear any cached credentials.
Declaration
Swift
func clearCredentials()