Skip to content

Commit

Permalink
fix(core): fix addTokenPrefix method
Browse files Browse the repository at this point in the history
  • Loading branch information
JoaoPedroAS51 committed Mar 7, 2020
1 parent c43e455 commit bb3243d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/core/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ export default class Auth {
}

addTokenPrefix (token) {
return this.options.token_type + ' ' + token
return this.options.token_type ? this.options.token_type + ' ' + token : token
}

// ---------------------------------------------------------------
Expand Down

0 comments on commit bb3243d

Please sign in to comment.