Skip to content

Commit d21f4be

Browse files
authored
fix(auth): update warn to log for identity pool config (#1081)
* fix(auth): update warn to log for identity pool config * fix(auth): address PR comment
1 parent 3ac0b2c commit d21f4be

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

AmplifyPlugins/Auth/AWSCognitoAuthPlugin/AWSCognitoAuthPlugin+Configure.swift

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,12 @@ extension AWSCognitoAuthPlugin {
8080
func identityPoolServiceConfiguration(from authConfiguration: JSONValue) -> AmplifyAWSServiceConfiguration? {
8181
let regionKeyPath = "CredentialsProvider.CognitoIdentity.Default.Region"
8282
guard case .string(let regionString) = authConfiguration.value(at: regionKeyPath) else {
83-
Amplify.Logging.warn("Could not read Cognito identity pool information from the configuration.")
83+
Amplify.Logging.info("""
84+
Cognito Identity Pool information is missing from the configuration. This is expected if you are not
85+
using an Identity Pool, otherwise check your configuration to make sure you specify a `Region`,
86+
`PoolId`, under `CognitoIdentity` > `Default`.
87+
See https://docs.amplify.aws/lib/auth/existing-resources/q/platform/ios for more details.
88+
""")
8489
return nil
8590
}
8691
let region = (regionString as NSString).aws_regionTypeValue()

AmplifyPlugins/Auth/Podfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,4 +89,4 @@ SPEC CHECKSUMS:
8989

9090
PODFILE CHECKSUM: 371cf67fe35ebb5167d0880bad12b01618a0fb0e
9191

92-
COCOAPODS: 1.9.3
92+
COCOAPODS: 1.10.1

0 commit comments

Comments
 (0)