Skip to content

Commit

Permalink
fix(cookie scheme): force unset cookie in reset instead of logout
Browse files Browse the repository at this point in the history
  • Loading branch information
JoaoPedroAS51 committed May 5, 2020
1 parent fe30ab1 commit d249c06
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/schemes/cookie.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ export default class CookieScheme extends LocalScheme {
return super.login(endpoint)
}

async logout (endpoint) {
await super.logout(endpoint)

async reset () {
if (this.options.cookie.name) {
this.$auth.$storage.setCookie(this.options.cookie.name, null, { prefix: '' })
}

return super.reset()
}
}

0 comments on commit d249c06

Please sign in to comment.