mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 11:17:08 +00:00
Read credentials from API responses
This commit is contained in:
@@ -18,6 +18,9 @@ async function api ({state, commit, dispatch}, [resource, init = {}, cb]) {
|
||||
cb(null, res);
|
||||
}
|
||||
if (res.ok) {
|
||||
|
||||
await dispatch('setCredentials');
|
||||
|
||||
try {
|
||||
return await res.json();
|
||||
} catch (err) {
|
||||
|
||||
Reference in New Issue
Block a user