Closed jatazoulja closed 5 years ago
@jatazoulja Thanks! This is really helpful. I cannot merge this PR but I'm going to link to this in our newsletter and in the tutorial.
Sure have it as reference... BTW do you have plans to update to aws amplify? I hears cognito-identity-js will be discontinued and will be part of amplify...
Cheers
@jatazoulja Yeah we are in talks with the Amplify team to update Serverless Stack with it. Should have some announcements soon.
Great! Looking forward to it!
@jayair Why can't we merge this?
@peetss I believe this is an old code. if you want to use it you can follow the instruction, and I believe this is pre aws-amplify version. I do have another version: https://github.com/AnomalyInnovations/serverless-stack-demo-client/pull/31
Note on this PR: this PR uses cognito custom UI. that requires callback (I don't see that callback on the latest aws-amplify yet). Pros: it uses cognito user pool and you can track user for social oAuth to your pool.
Cheers.
We just published a chapter based on @jatazoulja's new PR - https://serverless-stack.com/chapters/facebook-login-with-cognito-using-aws-amplify.html. Closing this!
Cognito Setting:
Facebook Setting:
NOTE: you can get your app key and secret key at the dashboard setting: