Use the username

This commit is contained in:
joshaber 2016-05-27 15:23:02 -04:00
parent bfdf7d4d96
commit 173ee804da

View file

@ -3,7 +3,6 @@ import {shell} from 'electron'
const keytar = require('keytar')
const ServiceName = 'GitHubClient'
const ServiceUserName = 'user'
const ClientID = 'de0e3c7e9973e1c4dd77'
const ClientSecret = '4b35aab1581a32e23af0d930f2a294ae3bb84960'
@ -57,5 +56,5 @@ export function getToken(username: string): string {
}
export function setToken(username: string, token: string) {
keytar.addPassword(ServiceName, ServiceUserName, token)
keytar.addPassword(ServiceName, username, token)
}