mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-09-11 15:14:31 +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)
|
tok = AccountStore.tokenForAccountId(AccountStore.accounts()[0].id)
|
||||||
new Promise (resolve, reject) =>
|
new Promise (resolve, reject) =>
|
||||||
EdgehillAPI.request
|
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) =>
|
success: (body) =>
|
||||||
resolve(@parseResponse(body))
|
resolve(@parseResponse(body))
|
||||||
error: reject
|
error: reject
|
||||||
|
|
Loading…
Add table
Reference in a new issue