ashishdommety / tutor-times

An application for tutors to enhance the learning experience of their students & optimize work they don't want to do
0 stars 0 forks source link

Use Session Storage and Local Storage for Google Authentication #18

Closed ashishdommety closed 6 years ago

ashishdommety commented 6 years ago

Using sessionStorage and localStorage we can save the users data once they log in.

So, we can fetch their name, email, photo and google id. If the user logs out, we can clear these things.

So, the app would load on the /dashboard if localStorage has the users google id. But if it doesn't, then we show the user the / landing page.