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