Obtaining google oAuth refresh token once expired I developed an application which integrates with google api. First part initially went ok: