Skip to content
Permalink
Browse files

Fix syntax

  • Loading branch information...
hareku committed May 13, 2017
1 parent 4a843b6 commit 6ceb4761c660cd5c44f72fa5f6b4aed89cc6e613
Showing with 2 additions and 2 deletions.
  1. +2 −2 modules/auth/store.js
@@ -109,8 +109,8 @@ function AuthStore (opts) {
// Unload user profile
ctx.commit('setUser', null)

// Create logout endpoint
const endpoint = endpoint + appendToken ? `/${ctx.state.token}` : ''
// Append token
if (appendToken) endpoint = endpoint + `/${ctx.state.token}`

// Server side logout
return $delete(endpoint).then(() => {

0 comments on commit 6ceb476

Please sign in to comment.
You can’t perform that action at this time.