summaryrefslogtreecommitdiff
path: root/store
diff options
context:
space:
mode:
Diffstat (limited to 'store')
-rw-r--r--store/auth.js4
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;