Thanks a lot for this video. Very insightful, and it's great that you showed the Amplify UI component in the end for comparison. I hope in a follow-up video if you can delve more into more advanced Cognito stuff and triggers, handling the same email from different providers (identify them as the same user), profile pic, and adding attributes like a name. Cognito sometimes trips me up.
Sorry to be offtopic but does anybody know a trick to log back into an instagram account..? I was stupid forgot my account password. I would love any tricks you can give me!
@Terry Bishop Thanks for your reply. I got to the site through google and I'm waiting for the hacking stuff now. I see it takes quite some time so I will reply here later when my account password hopefully is recovered.
Hey, yes it's absolutely possible and pretty easy to implement. Amplify supports multiple authentication types for a single API. Most real-world apps mix both public and private access. I should do a video that focuses on it, but this video touches on it: ua-cam.com/video/13nYLmjZ0Ys/v-deo.html
Thank you so much. This was very helpful. In a real app situation would you be more likely to get the user in App.js and wrap the app with a user context?? I'm still wrapping my head around useContext. But I assume in real world you want the user state everywhere rather than having to check in every page. Is this accurate? If so any pointers on where to start with doing this? Thank you again!
If you need a dynamic way of setting the redirect, in the configureAmplify.ts file change this to the below: if (typeof window !== 'undefined') { config.oauth.redirectSignIn = `${window.location.origin}/user/profile/`; config.oauth.redirectSignOut = `${window.location.origin}/user/profile/`; } This will be useful when you move past a single local environment 😸
What about the fact that you sign in with your email and a google account that use the same email. How do you handle so you don’t have multiple account with the same email?
@@naderdabit Thanks for the video! From what I understand we can use Identity Providers in Cognito User Pool and then Cognito User is created automatically? Do we still need such a lambda in this case? Also I was wondering how what is the best way to update the Cognito User profile from the app? We can't really use the app sync graphql api for this right?
Good!!!! is there an example that shows how to create the following flow: Let's suppose an application for a store. When a user registers they receive the administrator role by default (unlimited administrator users can register). This user in turn can create their own users but with a seller role and manage them. I'm not sure how to do this with amplify. Help(?)
Be care full - avoid some pain - there's an issue on Github and it says (issue #8359) "I managed to find out what causes this, it is nextjs V10.2.1, to avoid this error stick with 10.2.0 (or 9.5.6, since amplify technically doesn't support V10+ yet)". Although this is very recent issue it would be nice if AWS stated this clearly in the docs
1:24:00 I've been looking for this all day!! THANK YOU!!!
This channel is gold!
Thanks a lot for this video. Very insightful, and it's great that you showed the Amplify UI component in the end for comparison.
I hope in a follow-up video if you can delve more into more advanced Cognito stuff and triggers, handling the same email from different providers (identify them as the same user), profile pic, and adding attributes like a name. Cognito sometimes trips me up.
Sorry to be offtopic but does anybody know a trick to log back into an instagram account..?
I was stupid forgot my account password. I would love any tricks you can give me!
@Leonard Keanu Instablaster ;)
@Terry Bishop Thanks for your reply. I got to the site through google and I'm waiting for the hacking stuff now.
I see it takes quite some time so I will reply here later when my account password hopefully is recovered.
@Terry Bishop it worked and I now got access to my account again. I am so happy!
Thank you so much you saved my account :D
@Leonard Keanu You are welcome :D
You're a hero for young developers, thank you so much for this I don't even know how to thank you for this.
Wow Nader, this channel is gold! I'll check your book and then come later, keep up the great content!
Great stuff Nader, Thank you!
That's exactly what I needed, thanks a lot Nader!
this is gold, thank you so much, keep posting videos! 😁
Dude! That's awesome!!!
Another rapid-fire tour de force from Nader. Thank you @Nader!
Will Amplify support Next.js SSR deploys soon?
Hey, thank you! And yes, coming fairly soon!
Fantastic!
little bit different question : is it possible to use gatsby static content for public domain info and nextJS/ReactHS app for private part.
Hey, yes it's absolutely possible and pretty easy to implement. Amplify supports multiple authentication types for a single API. Most real-world apps mix both public and private access. I should do a video that focuses on it, but this video touches on it: ua-cam.com/video/13nYLmjZ0Ys/v-deo.html
Thank you so much. This was very helpful. In a real app situation would you be more likely to get the user in App.js and wrap the app with a user context?? I'm still wrapping my head around useContext. But I assume in real world you want the user state everywhere rather than having to check in every page. Is this accurate? If so any pointers on where to start with doing this? Thank you again!
If you need a dynamic way of setting the redirect, in the configureAmplify.ts file change this to the below:
if (typeof window !== 'undefined') {
config.oauth.redirectSignIn = `${window.location.origin}/user/profile/`;
config.oauth.redirectSignOut = `${window.location.origin}/user/profile/`;
}
This will be useful when you move past a single local environment 😸
Think you can maybe talk a bit more about why you've chosen the configuration settings that you have?
Helpline 📲📩
QUESTIONS CAN COME IN ⬆️..
awesome tutorial, btw is there a way to merge facebook, google and email users into one cognito user using email?
+1 for a tutorial on that!
@@roddutra7265 I've achieved this using cognito's pre signup trigger
@@roddutra7265 this is the lambda for it gist.github.com/cchamikara/554a440aef0fbc305cff6ddc33850e20
@@ChamalChamikara legend, thank you!
What about the fact that you sign in with your email and a google account that use the same email. How do you handle so you don’t have multiple account with the same email?
You can get around this with a Lambda trigger, but I did not go into it here. Adding a trigger is something you can do though with the Amplify CLI
@@naderdabit Thanks for the video! From what I understand we can use Identity Providers in Cognito User Pool and then Cognito User is created automatically? Do we still need such a lambda in this case? Also I was wondering how what is the best way to update the Cognito User profile from the app? We can't really use the app sync graphql api for this right?
Excelente !!!!
Good!!!!
is there an example that shows how to create the following flow: Let's suppose an application for a store. When a user registers they receive the administrator role by default (unlimited administrator users can register). This user in turn can create their own users but with a seller role and manage them. I'm not sure how to do this with amplify. Help(?)
Can you do authorization guarding using aws amplify next?
are the services of aws-amplify used in this video always free or is there free trial period for them??
Is this stack still relevant? Is the tutorial updated anywhere?
I'm sorry how does the API req body knows what user is signed in? Ok how does req body get that data to be used in Amplify? This was is confusing me
Do anyone have an idea how to store tokens in cookies http only instead in local storage?
Be care full - avoid some pain - there's an issue on Github and it says (issue #8359) "I managed to find out what causes this, it is nextjs V10.2.1, to avoid this error stick with 10.2.0 (or 9.5.6, since amplify technically doesn't support V10+ yet)". Although this is very recent issue it would be nice if AWS stated this clearly in the docs
And deploy?
Theme vs ? 🐵
It's Cyberpunk!
@@naderdabit thanks bro!!!!