Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please include social login examples also #110

Closed
yashg5 opened this issue Jul 17, 2017 · 6 comments
Closed

Please include social login examples also #110

yashg5 opened this issue Jul 17, 2017 · 6 comments

Comments

@yashg5
Copy link

yashg5 commented Jul 17, 2017

Facebook and google login and how to store them in user pool. it would be lot helpful. I am not able to find good examples anywhere to work on. If you have any external examples for the same please provide

@jayair
Copy link
Contributor

jayair commented Jul 18, 2017

@yashg5 With the current set up we have, it is a little tricky to add Facebook and Google. The new update that we are making to the tutorial will make this easier to do. Stay tuned! - #108

@sanjosedennis7593
Copy link

Hi,

I already did the facebook login, i just want to asked, how to handle session using facebook login? What i mean is that when i refreshed the page, it will maintain the session state of the current user.

@jayair
Copy link
Contributor

jayair commented Oct 25, 2017

@sanjosedennis7593 Are you using the FB SDK?

@sanjosedennis7593
Copy link

Yes, i'm using FB SDK, once i logged in, i get the credentials using the AWS.config.credentials, unfortunately, when i tried to refresh the page, it clears the value in the AWS.config.credentials object.

@jayair
Copy link
Contributor

jayair commented Oct 26, 2017

This is true even for our current tutorial. We call authUser every time the page is refreshed - https://github.com/AnomalyInnovations/serverless-stack-demo-client/blob/master/src/App.js#L21.

I think you'll need to do the same for FB. Check if the user is logged in using FB when the page loads and get a set of temporary credentials.

@yashg5 yashg5 closed this as completed Oct 26, 2017
@jatazoulja
Copy link

@sanjosedennis7593 can you share your code? I am also block by AWS.config.credentials.getPromise() not waiting to resolve or alway undefined (not async)
in any case could this help:
aws/aws-sdk-js#1097

please share if your successful...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants