We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 84297fb commit 9ec18b4Copy full SHA for 9ec18b4
1 file changed
src/client/LicenseChainClient.js
@@ -326,12 +326,6 @@ class LicenseChainClient {
326
app.id === appName
327
);
328
} catch (error) {
329
- // If API requires auth and fails, try using appName as appId directly
330
- if (error.response?.status === 401) {
331
- console.warn('API authentication failed, trying appName as appId');
332
- // Return a mock app object with the appName as id
333
- return { id: appName, name: appName, slug: appName };
334
- }
335
throw new Error(`Failed to get app: ${error.response?.data?.message || error.message}`);
336
}
337
0 commit comments