mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-11 10:12:00 +08:00
fix(delta): add N1 token to delta stream connection
This commit is contained in:
parent
9686361ce4
commit
27bfd91e32
1 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
{Emitter} = require 'event-kit'
|
||||
{DatabaseStore} = require 'nylas-exports'
|
||||
{IdentityStore, DatabaseStore} = require 'nylas-exports'
|
||||
url = require 'url'
|
||||
_ = require 'underscore'
|
||||
|
||||
|
@ -98,7 +98,7 @@ class NylasLongConnection
|
|||
return if @status is NylasLongConnection.Status.Ended
|
||||
|
||||
options = url.parse("#{@_api.APIRoot}/delta/streaming?cursor=#{cursor}&exclude_folders=false&exclude_metadata=false&exclude_account=false")
|
||||
options.auth = "#{token}:"
|
||||
options.auth = "#{token}:#{IdentityStore.identity().token}"
|
||||
|
||||
if @_api.APIRoot.indexOf('https') is -1
|
||||
lib = require 'http'
|
||||
|
|
Loading…
Reference in a new issue