Skip to content

Commit

Permalink
fix(delta): add N1 token to delta stream connection
Browse files Browse the repository at this point in the history
  • Loading branch information
emorikawa committed Jul 14, 2016
1 parent 192f6a7 commit eebc6c5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{Emitter} = require 'event-kit'
{DatabaseStore} = require 'nylas-exports'
{IdentityStore, DatabaseStore} = require 'nylas-exports'
url = require 'url'
_ = require 'underscore'

Expand Down Expand Up @@ -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'
Expand Down

0 comments on commit eebc6c5

Please sign in to comment.