I have error ```The provider Google does not exist...
# help
a
I have error
Copy code
The provider Google does not exist for User Pool us-east-1_Qdzu6iix4.
f
I briefly glanced through the doc, I might be wrong, but worth trying. Remove
registerIdentityProvider()
. So instead of:
Copy code
userPool.registerIdentityProvider(new cognito.UserPoolIdentityProviderGoogle(stack, "googleIdentity", {
    clientId: 'id',
    clientSecret: 'secret',
    userPool: userPool,
}))
try this
Copy code
new cognito.UserPoolIdentityProviderGoogle(stack, "googleIdentity", {
    clientId: 'id',
    clientSecret: 'secret',
    userPool: userPool,
})
a
cool, i'll try
just tried, have the same eror
it looks like it is trying to add identity provider in the same time when creating the provider
Copy code
Error: The provider Google does not exist for User Pool us-east-1_4f7dfyTD5. (Service: AWSCognitoIdentityProviderService; Status Code: 400; Error Code: InvalidParameterException; Request ID: 24d7bc22-c236-4fbd-8ead-4145db7a2771; Proxy: null)
ok, I change sequnce a bit and now it works, but the new issue I have
Copy code
One of, and only one of, cognitoDomain or customDomain must be specified
I tried 2 ways of adding domain
Copy code
userPool.addDomain("fanpointDomain", {
    cognitoDomain: {
      domainPrefix: addStagePrefix("fanpoint"),
    }
  })
Copy code
new cognito.UserPoolDomain(stack, "fanpointDomain", {
    userPool: userPool,
  })
@Frank do you know how to be with this domain shit?
f
If I remember correctly, @Marcelo Olivas was trying to do something similar and he was able deploy the user pool with the domain, but ran into some JWT scope issue at runtime. Here shared his code here https://serverless-stack.slack.com/archives/C01JG3B20RY/p1621563936007400
Maybe see if that helps?
a
cool, I’ll check tmr
I love you MAN!! All works like a charm