does Auth() automatically create a user pool clien...
# general
g
does Auth() automatically create a user pool client?
t
It does not - you have to make one yourself
g
just saw, it accepts UserPoolClientOptions. my bad hehehe!
thanks @thdxr!
where to put the callbackUrls?
f
@Gerald
Auth
will create User Pool Client for you.
@thdxr is right 99.9% of the time 🤣
t
oops
f
if you pass in
cognitoProps.userPoolClient
,
Auth
will use that config to create the client
a
99.9% is good SLA though, better than Facebook this month, I’d say. 😂
g
alright, thanks guys! 🙂
f
You’d configure urls under oauth, here’s an example
Copy code
oAuth: {
    flows: {
      authorizationCodeGrant: true,
    },
    scopes: [ cognito.OAuthScope.OPENID ],
    callbackUrls: [ '<https://my-app-domain.com/welcome>' ],
    logoutUrls: [ '<https://my-app-domain.com/signin>' ],
  }
g
Thank you guys for your help hehehe!