AWS Cognito + React JS Tutorial - Sessions and Logging out (2020) [Ep. 3]

preview_player
Показать описание
In this video, we go over getting sessions and logging out users using AWS Cognito and React.

🕐 Timestamps:
00:00 Introduction
00:30 Creating Account context
04:06 Creating getSession function
06:15 Creating logout function

#aws #cognito #tutorial #devascend
Рекомендации по теме
Комментарии
Автор

This is the best AWS Cognito video I've ever seen that shows everything from the bottom to the top in detail. Thank you so much for about caring the flow and the details.

joonwantsdat
Автор

Thank you so much for this playlist! It is one of the most amazing tutorials I have seen!!!

tamannaabdx
Автор

great video! Would be epic if you re did this explaining some of the things you used in depth. asynchronous function, promise etc!

makanmusty
Автор

How do you refreash the Idtoken to keep it from expirng using the refresh token?

johndimelu
Автор

Excellent explanation! Would love to see how to integrate with Facebook and Google as well.

eventslooped
Автор

Bro you deserve way more views and subs than you have

shivamb
Автор

Please do video for applyng refresh token when access token explres

olaleyeolabanjo
Автор

Hi Evan, the tutorial is excellent thank you. After I log out I get --( Uncaught ReferenceError: process is not defined )-- and is impossible to login. Also I get a warning (React Hook useEffect has a missing dependency: 'getSession')

arooly
Автор

GlobalSign out functionality is not working with this package.
How can i implement that?

xznojbn
Автор

thanks for video, but we don't need getSession inside context because it's a static function that doesn't depend on state, we can use it everywhere if you just move it out of the component... and for performance and architectural reasons it would have been great to move auth things to something like service class

valentineserebreanu
Автор

In the logout function, I am using 2 more methods [i.e., localStorage.clear() and sessionStorage.clear()] with user.signOut(), so that my token(present in local storage) also gets deleted. However, my token is still not expired. Is it because its default expired time is 24 hours? Please help me to find out this.

hewaligogoi
Автор

6:12 It seems that it keeps tokens in localStorage not cookies :( BTW great video, thank you so much!

cismuz
Автор

When I run getSession, it returns undefined. Has anyone ever ran into this error. Thank you

InvisibleOpey
Автор

I dont know why you have used Context when you could have used a .js file and just exported three functions from there

spark
Автор

Very nice Tutorial for AWS Cognito. Can we have same tutorial or sample code for Svelte as well?

kajenthiranvelummaylum
Автор

Do you have a patreon? This saved me so much!!!

liamlindy
Автор

How would you make the page reload automatically so that the login states are displayed right away instead of having to reload the page? Great Video by the way!

gregtherock
Автор

please explain slow..you r going very fast

mohammadaamirghulammohsin