mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-09-07 13:14:47 +08:00
fix(edgehill-server): auth uses GET token param instead of basic auth
This commit is contained in:
parent
753a342dae
commit
ffd762a9bc
1 changed files with 2 additions and 2 deletions
|
@ -47,8 +47,8 @@ class EdgehillAPI
|
|||
urlForConnecting: (provider, email_address = '') ->
|
||||
auth = @getCredentials()
|
||||
root = @APIRoot
|
||||
root = root.replace('://', "://#{auth.username}:#{auth.password}@") if auth
|
||||
"#{root}/connect/#{provider}?login_hint=#{email_address}"
|
||||
token = auth?.username
|
||||
"#{root}/connect/#{provider}?login_hint=#{email_address}&token=#{token}"
|
||||
|
||||
getCredentials: ->
|
||||
atom.config.get('edgehill.credentials')
|
||||
|
|
Loading…
Add table
Reference in a new issue