firebase.auth().signInWithRedirect(googleProvider)which seems like it would do the job however the redirect doesn't include the
id_tokenso instead we have to do the authentication manually
window.todesktopto check if we're in the Desktop app. If so, we load
auth2into GAPI, initialize it with our project's client id, and then get an auth instance and start the redirect sign in.
id_tokenas a hash parameter e.g: