mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-09-21 15:56:10 +08:00
fix(plugin-auth): POST returns 200, no response body
This commit is contained in:
parent
f313cc40f6
commit
b14a1a14e4
|
@ -440,8 +440,8 @@ class NylasAPI
|
|||
path: "/auth/plugin",
|
||||
body: {client_id: pluginId},
|
||||
json: true
|
||||
}).then (result) =>
|
||||
NylasEnv.config.set(cacheKey, Date.now()) if result.authed
|
||||
}).then =>
|
||||
NylasEnv.config.set(cacheKey, Date.now())
|
||||
return Promise.resolve()
|
||||
|
||||
_requestPluginAuth: (pluginName, account) ->
|
||||
|
|
Loading…
Reference in a new issue