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

Sign in a user with a unauthenticated user account #8

Open
sakhmedbayev opened this issue Dec 29, 2018 · 1 comment
Open

Sign in a user with a unauthenticated user account #8

sakhmedbayev opened this issue Dec 29, 2018 · 1 comment

Comments

@sakhmedbayev
Copy link

sakhmedbayev commented Dec 29, 2018

Thank you @richardzcode for the tutorial! It is something that I was looking for a week. Can you please help me to figure out how to add to your example app an ability to sign in user with an unauthenticated account? I am using aws-amplify with GraphQL API and transform library, decorating my model types with @auth decorator. At the moment the transform library supports only aws cognito user pools, however aws cognito user pools does not support unauthenticated users/workflow. As a solution, I am thinking to auto login a user with the fake/temp/preregistered account to allow him/her to use an app and then if a user will decide to sign up switch him/her to the "real" account, but so far have not been managed to figure out how to make it to work. Would be great to have an example of it.

@richardkeller411
Copy link

Try this.
// Amplify Install

Amplify.configure(awsconfig);
// Cognito AnonymousUser
const anonymousUser = Auth.currentCredentials();

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

2 participants