We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 25b66fe commit 3ebe95aCopy full SHA for 3ebe95a
1 file changed
src/client/LicenseChainClient.js
@@ -262,12 +262,6 @@ class LicenseChainClient {
262
app.id === appName
263
);
264
} catch (error) {
265
- // If API requires auth and fails, try using appName as appId directly
266
- if (error.response?.status === 401) {
267
- console.warn('API authentication failed, trying appName as appId');
268
- // Return a mock app object with the appName as id
269
- return { id: appName, name: appName, slug: appName };
270
- }
271
throw new Error(`Failed to get app: ${error.response?.data?.message || error.message}`);
272
}
273
0 commit comments