Move auth since it's no longer strictly main-process.

This commit is contained in:
joshaber 2016-05-27 11:37:20 -04:00
parent f7a200a5b1
commit 38715c1728

View file

@ -23,10 +23,10 @@ export function requestToken(code: string): Promise<string> {
method: 'post',
headers: DefaultHeaders,
body: JSON.stringify({
'client_id': ClientID,
'client_secret': ClientSecret,
'code': code,
'state': authState
'client_id': ClientID,
'client_secret': ClientSecret,
'code': code,
'state': authState
})
})
.then(response => response.json())