fixed guest creation API front wrapping
This commit is contained in:
@@ -140,7 +140,6 @@ export default class API {
|
|||||||
route: "/auth/guest",
|
route: "/auth/guest",
|
||||||
method: "POST",
|
method: "POST",
|
||||||
});
|
});
|
||||||
if (!response.ok) throw new APIError("Error while creating guest account", response.status, "guestAccountCreationError");
|
|
||||||
if (!response.access_token) throw new APIError("No access token", response.status);
|
if (!response.access_token) throw new APIError("No access token", response.status);
|
||||||
return response.access_token;
|
return response.access_token;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user