Google Oauth but not for login

Hey all,

I want my users to all login with email. But if they also have a google account I need to sync google calendar using CALDAV, which requires oauth 2 support. Is there a way to get their Google oauth 2 information after they are already logged in with their email?

Thanks for the help!

Ok seems like I do this:

Google.requestCredential({
  requestPermissions:['https://www.googleapis.com/auth/calendar']
},function(){console.log(arguments)})

Unfortunately, the login never completes and leaves just a blank page :frowning: Any idea why?