mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-27 18:37:53 +08:00
fix(sidebar): use http basic auth to pass token
This commit is contained in:
parent
2bd03dc44f
commit
fe5b9c3258
1 changed files with 4 additions and 1 deletions
|
@ -9,7 +9,10 @@ module.exports = class ClearbitDataSource
|
|||
tok = AccountStore.tokenForAccountId(AccountStore.accounts()[0].id)
|
||||
new Promise (resolve, reject) =>
|
||||
EdgehillAPI.request
|
||||
path: "/proxy/clearbit/#{@clearbitAPI()}/find?email=#{email}&api_token=#{tok}",
|
||||
auth:
|
||||
user: tok
|
||||
pass: ""
|
||||
path: "/proxy/clearbit/#{@clearbitAPI()}/find?email=#{email}",
|
||||
success: (body) =>
|
||||
resolve(@parseResponse(body))
|
||||
error: reject
|
||||
|
|
Loading…
Reference in a new issue