omou-org / front-end

2 stars 1 forks source link

Google Classroom Integration #729

Open dhuangg opened 3 years ago

dhuangg commented 3 years ago

Development Todo's

dhuangg commented 3 years ago

@ml5885 The React Google Login component seems to have a isSignedIn prop that will return a GoogleUser object on load if the user had given the app permission. Maybe experiment with this to keep the user logged in.

If we're going to keep the user logged in, then we also need to implement the <GoogleLogout/> component or the useGoogleLogout() hook to log the user out when we click on the logout button.

dhuangg commented 3 years ago

@andrewjknapp look into adding the login hook to the navigation container component so that the google login component always loads.

maybe the reason why this isn't always refreshing the token is because the dialog isn't popping up on refresh.