Creating a custom authentication flow from scratch with AWS Amplify and React

  Рет қаралды 28,327

Nader Dabit

Nader Dabit

Күн бұрын

In this live stream, I will start from a new React application and build out a completely custom authentication flow on the client using React hooks, including multi-factor authentication for sign ups and an event listener for authentication events using AWS Amplify and Amazon Cognito.

Пікірлер: 56
@amandaroseortiz7461
@amandaroseortiz7461 3 жыл бұрын
loved this! super basic but definitely gets the basics across! Im newish to react and AWS has such minimal documentation. Glad you went over everything in such detail!
@naderdabit
@naderdabit 3 жыл бұрын
Thank you!
@nilsb.3115
@nilsb.3115 2 жыл бұрын
being a senior backend dev/architect there really isn't too much documentation out there on how to implement custom flow on the frontend part, at least not for frontend newbies like me ;-) helped me a lot! so big thanks to you for not only this particular video :-) I often end up with your videos or repos when trying to find solutions to particular problems!
@kaminer6212
@kaminer6212 Жыл бұрын
This is a great. Thanks!!! I had some problems understanding the AWS documentation.
@suhwanc
@suhwanc 3 жыл бұрын
thank you very much.. I was only going to do the customization through withathenticator. Thanks to that, I realized how deep it was.
@gowthamdasari6227
@gowthamdasari6227 2 жыл бұрын
Thanks a lot Nader👏
@jasonko1202
@jasonko1202 2 жыл бұрын
Nice, concise, and super useful tutorial! Thanks Nader :)
@syremusic_
@syremusic_ 3 жыл бұрын
Fantastic tutorial, thank you Nader!
@viveksanghvi4394
@viveksanghvi4394 3 жыл бұрын
ur honestly a godsend
@viveksanghvi4394
@viveksanghvi4394 3 жыл бұрын
also lowkey thought you were GSP for a sec xD
@franco-yvr9799
@franco-yvr9799 3 жыл бұрын
Many thanks, great end to end setup video! With a few extra hours of work, i managed to make a moden login page! At least 20 views are from me ;)
@chandlergersh
@chandlergersh 3 жыл бұрын
This tutorial was awesome! Thank you.
@richteraueisen4844
@richteraueisen4844 3 жыл бұрын
This code is beautiful.. I strive to have my code vibe like this. Thanks Nader
@zepelega22
@zepelega22 4 жыл бұрын
Hi Nader, I watched the last live stream, it was awesome. I asked you about multi-tenant with Amplify / AppSync, you answered me that the documentation was about to be released, any updates about that? It would realy help me. Thank you for the content you have already made available to us. Hello from Brazil.
@ErickWendelTraining
@ErickWendelTraining 4 жыл бұрын
Brazillians everywhere! hhee \o/
@m4rcosazevedo
@m4rcosazevedo 4 жыл бұрын
@@ErickWendelTraining always....
@jb4948
@jb4948 4 жыл бұрын
Well done!
@danielgregory1357
@danielgregory1357 4 жыл бұрын
Perfect, thank you!
@ErickWendelTraining
@ErickWendelTraining 4 жыл бұрын
UUUuh nice! Can't wait to watch it!
@nageshwarip8047
@nageshwarip8047 2 жыл бұрын
Hey Nader, Thanks for sharing this . Its help me lot. I glad if you share auth flow with challengeName with formState 🙂
@RefactoringRyan
@RefactoringRyan 2 жыл бұрын
Hey Nader! Thanks for sharing this with the community, I got about as far as you did in this video before coming across it with my angular project. The biggest issue I am running into is refreshing the sessions using the session token. It seems like currentSession isn’t working as expected. The token only refreshes on a manual reload of the browser.
@kettenbach
@kettenbach 3 жыл бұрын
Boss tweets everyday ‼️🙏😀💎
@strengergabor
@strengergabor 3 жыл бұрын
Thank you!
@IAMTHEMUSK
@IAMTHEMUSK 3 жыл бұрын
Thank you amazing video ! I just had some difficulties cause I didn't want to use username but only email. Be aware that in this case you have to use username and not email as input And I still have one question, now that we have our proper Auth interface, how are we supposed to manage in the code to show it when it's necessary? I know that with withAuthenticator we just need to add export default withAuthenticator(component), to force the user to be logged. In our case do we just have to check if the user is logged in and if not show the interface instead of the page content? Thanks a lot
@euricocatumbela9671
@euricocatumbela9671 3 жыл бұрын
I Nader thanks for the great video, please will you explain how to throw exceptions for empty inputs?
@ewolz
@ewolz 2 жыл бұрын
Do you have an extra video on forgotten password, remember me or sending email on sign up, would be nice to add some lambda triggers for us juniors. Thanks for the great work.
@LeonardoArangoCifuentes
@LeonardoArangoCifuentes 2 жыл бұрын
Hi, I'm using amplify import auth, to import a user pool but I get this error, The selected Cognito User Pool does not have at least 1 Web app client configured. Web app clients are app clients without a client secret. even though I already created an app client in the pool in aws.
@tinmank
@tinmank 3 жыл бұрын
When I saw custom authentication I thought it is something like passwordless (OTP) login or something. :/
@alphaibrahimabarry5410
@alphaibrahimabarry5410 4 жыл бұрын
Thanks Nader, could you share your code on github please?
@revatipatil939
@revatipatil939 3 жыл бұрын
Where the log-in user details will be present? In user Cognito pool only?
@SuperSarhanWebdev
@SuperSarhanWebdev 3 жыл бұрын
can you please share something article video whatever on how to use @function with graphql to affect the data coming from dynamobd not static data written inside the function code I get lost in the flow
@SumeetChawla
@SumeetChawla 4 жыл бұрын
Thank you for creating this video. I think all the videos should be collated and kept as links in the Amplify docs somewhere. Any idea why the Hub might not be responding? Am doing the exact thing but seems like the hub is not reacting to the auth events happening. Update: So till I manually dispatched an event from the signout method, the event wasn't trigged. I had to do Hub.dispatch('auth', { event: 'signOut', data: undefined }, 'Auth'); But the documentation mentions that Auth events are already dispatched. Confused? :(
@StephenRayner
@StephenRayner 3 жыл бұрын
Follow up videos for unit testing with jest and react testing library? Very little in this playlist for unit tests
@allysonmolloy710
@allysonmolloy710 3 жыл бұрын
Thanks for the tutorial! I am getting an 'unexpected use of event' error when trying to run the code. How can I fix this? Thanks in advance!
@vinayakkirangi2196
@vinayakkirangi2196 3 жыл бұрын
Unhandled Rejection (AuthError): Confirmation code cannot be empty any solution?
@basics-school
@basics-school Жыл бұрын
is there any recent tuts??
@fabianbalmaceda6808
@fabianbalmaceda6808 4 жыл бұрын
Hi Nader, I been working on a personal project using amplify, your videos are very useful. I have some questions for the stream: - How to add and use Cognito groups? - Is it possible to add custom properties to the Cognito user table, on register? Thanks.
@zepelega22
@zepelega22 4 жыл бұрын
Hi Fabián, excuse me for the intrusion, what you hoping to achive is possible via Lambda Triggers. If you will, until the talk, you might want to take a look at the documentation, it's prettie simple to implement, both via Amplify CLI or via Amplify Console. Hope that help, certainly helped me. docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html
@wplearning
@wplearning 4 жыл бұрын
Whats up Nader
@SpurtiB
@SpurtiB 3 жыл бұрын
Nice tutorial. I followed the exact steps but when I enter authentication code I receive error "AuthError: Confirmation code cannot be empty".
@irman3716
@irman3716 3 жыл бұрын
Same here, I am receiving the same error messagge :(
@irman3716
@irman3716 3 жыл бұрын
fixed by changing await Auth.confirmSignUp({username, code}) into await Auth.confirmSignUp(username, code)
@rorycawley8334
@rorycawley8334 3 жыл бұрын
"What javascript framework are you using (Use arrow keys)" > none Why didn't you choose react?
@emmanuelmanana1527
@emmanuelmanana1527 2 жыл бұрын
12:22
@SchooldepotCoUk
@SchooldepotCoUk 3 жыл бұрын
Where can we download the code?
@loganpowell
@loganpowell 4 жыл бұрын
Is that a real banksy?
@RaulGlasgow
@RaulGlasgow 3 жыл бұрын
no code?
@ozankurucu6261
@ozankurucu6261 3 жыл бұрын
Can you share github source code?
@MrEnsiferum77
@MrEnsiferum77 4 жыл бұрын
My question is, how u gonna refactor this one, if tommorow, aws amplify for some reason is gone?
@ApoorvMote
@ApoorvMote 4 жыл бұрын
This was complete misleading. I thought custom authentication will be with using lambda triggers to build auth not have React auth tutorial. I am building amp website that doesn't allow custom javascript in frontend.
Live-coding a Twitch-like video streaming video platform in React
48:17
У ГОРДЕЯ ПОЖАР в ОФИСЕ!
01:01
Дима Гордей
Рет қаралды 8 МЛН
Angry Sigma Dog 🤣🤣 Aayush #momson #memes #funny #comedy
00:16
ASquare Crew
Рет қаралды 50 МЛН
5. AWS Amplify: Custom Authentication using the Amplify Auth API
21:01
The Complete Guide to Next.js Authentication with AWS
23:29
Nader Dabit
Рет қаралды 14 М.
Working with Data in DynamoDB from React with AWS Amplify - Full tutorial
43:10
Complete Coding - Master AWS Serverless
Рет қаралды 63 М.
Let's build WhatsApp with React Native and AWS Amplify [p2] 🔴
3:19:26
Build an Online Store Using AWS, React, and Stripe
56:26
freeCodeCamp.org
Рет қаралды 162 М.
AWS Amplify Serverless GraphQL React workshop by Nader Dabit
1:47:47
Web Tech Talks
Рет қаралды 45 М.
AWS Amplify Authentication with React Js
8:33
Last moment Learning
Рет қаралды 7 М.
Serverless Functions in Depth with AWS Amplify
1:08:33
Nader Dabit
Рет қаралды 46 М.
У ГОРДЕЯ ПОЖАР в ОФИСЕ!
01:01
Дима Гордей
Рет қаралды 8 МЛН