8000 Use 'scheme' not 'prefix' for TokenAuthentication · core-api/javascript-client@17f7860 · GitHub
[go: up one dir, main page]

Skip to content
8000
This repository was archived by the owner on Mar 18, 2019. It is now read-only.

Commit 17f7860

Browse files
committed
Use 'scheme' not 'prefix' for TokenAuthentication
1 parent de84917 commit 17f7860

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/auth/token.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
class TokenAuthentication {
22
constructor (options = {}) {
33
this.token = options.token
4-
this.prefix = options.prefix || 'Bearer'
4+
this.scheme = options.scheme || 'Bearer'
55
}
66

77
authenticate (options) {
8-
options.headers['Authorization'] = this.prefix + ' ' + this.token
8+
options.headers['Authorization'] = this.scheme + ' ' + this.token
99
return options
1010
}
1111
}

0 commit comments

Comments
 (0)
0