pub fn finish(
sign_in: SignIn,
client_id: &str,
client_secret: &str,
email: &str,
stop: &AtomicBool,
) -> Result<Grant, SyncError>Expand description
Waits for Google’s answer (five minutes at most, or until stop), trades
its code for tokens, checks it is the address you gave (and, for mail,
that its access was left ticked on Google’s page), and keeps the grant in
the keyring.