summaryrefslogtreecommitdiff
path: root/store
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2022-09-15 16:55:52 +0200
committerSanto Cariotti <santo@dcariotti.me>2022-09-15 16:55:52 +0200
commita5918f0f4ebb3a0fb1fef1bb3ceeabd1ade2ae93 (patch)
treecce6ce952896b34b2fe22150cbe373990f995a85 /store
parentd6d275ee9427c5fbb3161f66cc5ac1c723a784d8 (diff)
Signup page
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;