diff --git a/lib/schemes/local.js b/lib/schemes/local.js index 38fbc515a..e5d46c705 100644 --- a/lib/schemes/local.js +++ b/lib/schemes/local.js @@ -55,17 +55,11 @@ export default class LocalScheme { } async setUserToken (tokenValue) { - // Ditch any leftover local tokens before attempting to log in - await this._logoutLocally() - - if (this.options.tokenRequired) { - const token = this.options.tokenType - ? this.options.tokenType + ' ' + tokenValue - : tokenValue - - this.$auth.setToken(this.name, token) - this._setToken(token) - } + const token = this.options.tokenType + ? this.options.tokenType + ' ' + tokenValue + : tokenValue + this.$auth.setToken(this.name, token) + this._setToken(token) return this.fetchUser() }