1 Answer
- Newest
- Most votes
- Most comments
2
In case this helps anyone I figured this out after digging into these docs https://aws-amplify.github.io/amplify-js/api/classes/aws_amplify.adapter_core._Reference_Types_.AmplifyClass.html#configure
By the way, I feel like talking to myself here. No answers amplify related questions? 🤔 am I the only one using amplify with existing aws resources this way? Is there a better place to ask questions about amplify?
Amplify.configure({
Auth: {
Cognito: {
loginWith: {
oauth: {
domain: "<your domain here>.amazoncognito.com",
providers: ["Google"],
redirectSignIn: ["http://localhost:5173"],
redirectSignOut: [],
responseType: "code",
scopes: ["openid", "email", "profile"],
},
},
userPoolClientId: "<your user pool client id>",
userPoolId: "your user pool id",
},
},
});
Relevant content
- asked 5 months ago