Hey everyone! This is an older video. If you are starting with AWS Amplify today I'd highly recommend to check out this blog post on using AWS Amplify Gen 2! It's the latest version of Amplify. aws.amazon.com/blogs/mobile/amplify-gen2-ga/
Erick, this is pure gold just what I needed, I like AWS a lot, would love to see a comprehensive documentation in most products, that's the part that burdens dev experience with AWS.
I have ond question, not related to this video but with jwt authentication. I have a jwt authentication in my current application, storing the tokens in localstorage and also refreshing it just before the access token expires automatically. One problem which I'm facing is, race condition when opening the application in 2 or more tabs. As it will request the tokens at the same time. Any idea how to solve this?
Erick, I copied exactly what you did in my project but got and error saying Uncaght TypeError: Object(...) is not a function, is there an easy fix or can i discuss more detail with you somewhere?
Hi ! Is it also possible to connect an existing backend ? In my projects I usually use FastApi in python to do my backend and I'd like to connect to a vue interface using the amplify auth panel. What would be the best way to do this ?
Simply adding @auth and allow: "owner" to a model in the GraphQL schema file and it is Automatic that all queries only create/read/update/delete the data for that user.
Yes! Daniel mentioned one way. You can also use the JWT token and verify it in your backend , or you can use lots of AWS services that integrate with Cognito to do authorization. It can all be done with the CLI!
Would be nice if something like discord would be included as a login option. I tried to set up a login with discord with nuxt/auth but could not get it to work.
Good stuff. I am really tempted to do a rewrite of my current cognito system now 😉. But a more technical question: does this cognito setup support refresh tokens and a code challenge (PKCE) during login?
Yes! To both. So the Amplify JS library will automatically handle token refresh. As for PKCE it works only with the hosted UI with the OAuth flow. The normal login does not use OAuth, it uses SRP.
Thanks a lot! You've just earned yourself a new happy subscriber. So if you really want to use OAuth, then using amplify ui on your own frontend doesn't really apply (apart from the initial login button that performs the redirect)
Come on man, signing in with Google, etc is a must.. should have included multiple ways to signup/login... so yes I would like to see how you can offer multiple ways...
@@FS-yq9ef No it's not, he asks viewers to let him know if we would like to see a separate video on that which is ridiculous as 90% of people want to use their Google, etc.. accounts to signup/in...
Hey everyone! This is an older video. If you are starting with AWS Amplify today I'd highly recommend to check out this blog post on using AWS Amplify Gen 2! It's the latest version of Amplify. aws.amazon.com/blogs/mobile/amplify-gen2-ga/
thank you Erik. content like this is the reason why I don't want to miss out any video from your channel.
I was waiting for such a video..Thank you so much Erick👏👏🔥
Erick, this is pure gold just what I needed, I like AWS a lot, would love to see a comprehensive documentation in most products, that's the part that burdens dev experience with AWS.
Yeah! We are trying to add more docs all the time! Thanks for the input
Hello Erik , what solution u would use to do pubsub/realtime communication between backend and frontend ?
Congrats on joining AWS! I’d love to hear about how you joined. (Did they seek you, or did you apply, etc)
I got contacted by a recruiter! That easy!
Soon the whole world will work at amazon
eeeee
the last week has passed for this task and tomorrow is the end of the deadline)))
thank you very much)
Really good content! Thanks for sharing with us! Keep up the good work.
Great Video, Erik!
I have ond question, not related to this video but with jwt authentication. I have a jwt authentication in my current application, storing the tokens in localstorage and also refreshing it just before the access token expires automatically.
One problem which I'm facing is, race condition when opening the application in 2 or more tabs. As it will request the tokens at the same time. Any idea how to solve this?
Erick, I copied exactly what you did in my project but got and error saying Uncaght TypeError: Object(...) is not a function, is there an easy fix or can i discuss more detail with you somewhere?
Hi ! Is it also possible to connect an existing backend ? In my projects I usually use FastApi in python to do my backend and I'd like to connect to a vue interface using the amplify auth panel. What would be the best way to do this ?
Eric can u make quiz question in vue3 js please.
x2
How do you use the authenticated user to access a backend api? Does aws use id tokens & access tokens?
Simply adding @auth and allow: "owner" to a model in the GraphQL schema file and it is Automatic that all queries only create/read/update/delete the data for that user.
Yes! Daniel mentioned one way. You can also use the JWT token and verify it in your backend , or you can use lots of AWS services that integrate with Cognito to do authorization. It can all be done with the CLI!
@@ProgramWithErik I’d love to see it done 🤓
Need more svelteJS tutorials...
BTW the vids are great
What’s the aws admin UI tool you built using… does it use Vue?
The UI library is built in Vue, React and Angular, and the admin ui was built in React I believe
Would be nice if something like discord would be included as a login option. I tried to set up a login with discord with nuxt/auth but could not get it to work.
Yeah might be worth something to look into
Good stuff. I am really tempted to do a rewrite of my current cognito system now 😉.
But a more technical question: does this cognito setup support refresh tokens and a code challenge (PKCE) during login?
Yes! To both. So the Amplify JS library will automatically handle token refresh.
As for PKCE it works only with the hosted UI with the OAuth flow. The normal login does not use OAuth, it uses SRP.
Thanks a lot! You've just earned yourself a new happy subscriber.
So if you really want to use OAuth, then using amplify ui on your own frontend doesn't really apply (apart from the initial login button that performs the redirect)
looks nice :) lets hope I'll try it one day.
In 22 minutes 😉
Well I explained a lot :) cut my talk out and you can add it in 5 minutes
right... it's 22+ minutes
Come on man, signing in with Google, etc is a must.. should have included multiple ways to signup/login... so yes I would like to see how you can offer multiple ways...
@@FS-yq9ef No it's not, he asks viewers to let him know if we would like to see a separate video on that which is ridiculous as 90% of people want to use their Google, etc.. accounts to signup/in...
Sure! I can add another video on adding google and other social logins ! I wanted to keep things simple first
@@ProgramWithErik Thank you, that will be much appreciated! Great content!
yes. this will help tremendously
Do you happen work with an Andrew S****?
Who?
5min, but vid is 20min, good oneeeeeeeee
Ha! Yeah maybe I should change the name…
@@ProgramWithErik It was the clickbait butthurt. It works. (jk, I'd click any title)
WTF DUDE... I Dont recognize you...
ERIK, BRING THE BEARD BACK...
PS: Good video!