diff options
Diffstat (limited to 'store/auth.js')
-rw-r--r-- | store/auth.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/store/auth.js b/store/auth.js index dbf989f..9158fb0 100644 --- a/store/auth.js +++ b/store/auth.js @@ -76,6 +76,10 @@ export const actions = { .then(async (response) => { res.data = await response.json(); res.status = response.status; + + if (res.status == 201) { + commit("saveAccessToken", res.data.access_token); + } }) .catch((e) => { res.status = e.status; |