mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-25 16:44:16 +08:00
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 |
||
---|---|---|
.. | ||
migrations | ||
models | ||
auth-helpers.es6 | ||
backoff-schedulers.es6 | ||
database-types.js | ||
db-utils.es6 | ||
delta-stream-builder.js | ||
env-helpers.es6 | ||
errors.es6 | ||
hook-increment-version-on-save.js | ||
hook-transaction-log.js | ||
imap-box.es6 | ||
imap-connection-pool.es6 | ||
imap-connection.es6 | ||
imap-errors.es6 | ||
load-models.js | ||
message-factory.es6 | ||
metrics-reporter.es6 | ||
promise-utils.js | ||
send-utils.es6 | ||
sendmail-client.es6 | ||
smtp-errors.es6 | ||
string-utils.es6 | ||
tls-utils.es6 |