mirror of
https://github.com/desktop/desktop
synced 2024-10-31 05:19:03 +00:00
Use the username
This commit is contained in:
parent
bfdf7d4d96
commit
173ee804da
1 changed files with 1 additions and 2 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue