From 6d2bd7756ec466183283af7b626c99b6040ccd8e Mon Sep 17 00:00:00 2001 From: Ben Ogle Date: Fri, 6 Dec 2013 11:57:31 -0800 Subject: [PATCH] Add the getGitHubAuthTokenName fn back in --- src/atom.coffee | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/atom.coffee b/src/atom.coffee index 6ca11fc83..260da48d2 100644 --- a/src/atom.coffee +++ b/src/atom.coffee @@ -353,13 +353,16 @@ class Atom getVersion: -> app.getVersion() + getGitHubAuthTokenName: -> + 'Atom GitHub API Token' + # Public: Set the the github token in the keychain setGitHubAuthToken: (token) -> - keytar.replacePassword('Atom GitHub API Token', 'github', token) + keytar.replacePassword(@getGitHubAuthTokenName(), 'github', token) # Public: Get the github token from the keychain getGitHubAuthToken: -> - keytar.getPassword('Atom GitHub API Token', 'github') + keytar.getPassword(@getGitHubAuthTokenName(), 'github') # Public: Get the directory path to Atom's configuration area. #