We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 34d539e commit b6cfad4Copy full SHA for b6cfad4
1 file changed
lib/schemes/local.js
@@ -34,6 +34,9 @@ export default class LocalScheme {
34
return
35
}
36
37
+ // Ditch any leftover local tokens before attempting to log in
38
+ await this._logoutLocally()
39
+
40
const result = await this.$auth.request(
41
endpoint,
42
this.options.endpoints.login
@@ -81,6 +84,10 @@ export default class LocalScheme {
81
84
82
85
83
86
// But logout locally regardless
87
+ return this._logoutLocally()
88
+ }
89
90
+ async _logoutLocally () {
91
if (this.options.tokenRequired) {
92
this._clearToken()
93
0 commit comments