diff options
author | Santo Cariotti <santo@dcariotti.me> | 2022-09-15 16:55:52 +0200 |
---|---|---|
committer | Santo Cariotti <santo@dcariotti.me> | 2022-09-15 16:55:52 +0200 |
commit | a5918f0f4ebb3a0fb1fef1bb3ceeabd1ade2ae93 (patch) | |
tree | cce6ce952896b34b2fe22150cbe373990f995a85 /store | |
parent | d6d275ee9427c5fbb3161f66cc5ac1c723a784d8 (diff) |
Signup page
Diffstat (limited to 'store')
-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; |