Mailspring/packages/isomorphic-core/src
Karim Hamidou 01318370d4 [cloud-workers] [send-later] Fix send later token expiration
Summary:
Fixes T8076. So, the Gmail OAuth API returns us an expiration time in milliseconds, but we convert it to seconds everywhere, except in the cloud-api. This caused us to never refresh tokens because we'd be comparing seconds to milliseconds.

Fix this by converting the `expiry_date` from our credentials to seconds.

Test Plan: Tested manually. Will do more testing tomorrow, after my credentials expire.

Reviewers: evan, juan

Reviewed By: evan, juan

Maniphest Tasks: T8076

Differential Revision: https://phab.nylas.com/D4390
2017-04-06 18:57:16 -07:00
..
migrations
models [cloud-*] Switch MySQL charset to utf8mb4 2017-04-06 16:25:09 -07:00
auth-helpers.es6 [cloud-workers] [send-later] Fix send later token expiration 2017-04-06 18:57:16 -07:00
backoff-schedulers.es6 [*] Move BackoffSchedulers into isomorphic-core 2017-02-17 10:11:35 -08:00
database-types.js [iso-core, cloud-*] catch JSON parse errors in DB columns 2017-04-06 18:22:29 -07:00
db-utils.es6 [cloud-*] Switch MySQL charset to utf8mb4 2017-04-06 16:25:09 -07:00
delta-stream-builder.js [cloud-*] log errors according to bunyan specs 2017-04-05 10:47:56 -07:00
env-helpers.es6 [iso-core] Increase the IMAP connection pool size 2017-03-10 13:40:37 -08:00
errors.es6 [cloud-api] Verify SMTP credentials in /auth endpoint 2017-03-28 15:47:44 -07:00
hook-increment-version-on-save.js [*] fix(deltas): Cloud-API not filtering deltas at all, refactor a few things 2016-12-01 18:41:46 -08:00
hook-transaction-log.js [local-sync] Sync draft flag from provider to K2 & exclude drafts from Edgehill 2017-01-23 20:58:32 -08:00
imap-box.es6 [client-app] Fix references to RetryableError imports 2017-03-29 15:51:09 -07:00
imap-connection-pool.es6 [isomorphic-core] Ensure IMAPConnPool uses updated account credentials 2017-04-06 10:32:42 -07:00
imap-connection.es6 [*] Revamp SSL options (including user-facing) 2017-04-05 17:49:43 -07:00
imap-errors.es6 [cloud-api] Verify SMTP credentials in /auth endpoint 2017-03-28 15:47:44 -07:00
load-models.js [local-sync] add attachments 2017-01-05 16:33:38 -08:00
message-factory.es6 Revert "Revert "[feat] Add support for send later"" 2017-03-07 17:21:29 -08:00
metrics-reporter.es6 [cloud-*] remove old SignalFX reporter & add docs 2017-04-05 10:51:38 -07:00
promise-utils.js
send-utils.es6 Revert "Revert "[feat] Add support for send later"" 2017-03-07 17:21:29 -08:00
sendmail-client.es6 [cloud-api] Verify SMTP credentials in /auth endpoint 2017-03-28 15:47:44 -07:00
smtp-errors.es6 [*] Revamp SSL options (including user-facing) 2017-04-05 17:49:43 -07:00
string-utils.es6 [client-app] use debug library for DB 2017-03-30 17:26:33 -07:00
tls-utils.es6 [*] Revamp SSL options (including user-facing) 2017-04-05 17:49:43 -07:00