Skip to content

Commit

Permalink
fix(config): switched token from base64 to string (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
jh2oman authored and silasbw committed Feb 25, 2017
1 parent 2d49192 commit 95b75a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ function fromKubeconfig (kubeconfig, current) {
}

if (user.token) {
auth.bearer = Buffer.from(user.token, 'base64').toString();
auth.bearer = user.token;
}

if (user.username) auth.user = user.username;
Expand Down
4 changes: 2 additions & 2 deletions test/config.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ describe('Config', () => {
{
name: 'foo-user',
user: {
token: new Buffer('foo-token').toString('base64')
token: 'foo-token'
}
}
]
Expand Down Expand Up @@ -206,7 +206,7 @@ describe('Config', () => {
{
name: 'foo-user',
user: {
token: new Buffer('foo-token').toString('base64')
token: 'foo-token'
}
}
]
Expand Down

0 comments on commit 95b75a2

Please sign in to comment.