From a5918f0f4ebb3a0fb1fef1bb3ceeabd1ade2ae93 Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Thu, 15 Sep 2022 16:55:52 +0200 Subject: Signup page --- store/auth.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'store') 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; -- cgit v1.2.3-18-g5258