u
This commit is contained in:
@@ -9,6 +9,8 @@ export const auth = {
|
|||||||
user: data.user ?? null,
|
user: data.user ?? null,
|
||||||
googleClientId: data.googleClientId ?? null,
|
googleClientId: data.googleClientId ?? null,
|
||||||
schemaVersion: data.schemaVersion ?? null,
|
schemaVersion: data.schemaVersion ?? null,
|
||||||
|
vhost: Boolean(data.vhost),
|
||||||
|
vhostSettings: data.vhostSettings ?? null,
|
||||||
};
|
};
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
if (err.status === 401 || err.status === 403) {
|
if (err.status === 401 || err.status === 403) {
|
||||||
@@ -16,6 +18,8 @@ export const auth = {
|
|||||||
user: null,
|
user: null,
|
||||||
googleClientId: err.data?.googleClientId ?? null,
|
googleClientId: err.data?.googleClientId ?? null,
|
||||||
schemaVersion: err.data?.schemaVersion ?? null,
|
schemaVersion: err.data?.schemaVersion ?? null,
|
||||||
|
vhost: Boolean(err.data?.vhost),
|
||||||
|
vhostSettings: err.data?.vhostSettings ?? null,
|
||||||
forbidden: err.status === 403,
|
forbidden: err.status === 403,
|
||||||
message: err.message,
|
message: err.message,
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user