strapi-plugin-oidc 1.8.2 → 1.8.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -115,9 +115,10 @@ async function applyDiscovery(strapi2) {
115
115
  if (!res.ok) throw new Error(`HTTP ${res.status}`);
116
116
  doc = await res.json();
117
117
  } catch (e) {
118
- throw new Error(
118
+ strapi2.log.error(
119
119
  errorMessages.DISCOVERY_FETCH_ERROR(discoveryUrl, e instanceof Error ? e.message : String(e))
120
120
  );
121
+ return;
121
122
  }
122
123
  const updates = {};
123
124
  for (const [docField, configKey] of FIELD_MAP) {
@@ -109,9 +109,10 @@ async function applyDiscovery(strapi2) {
109
109
  if (!res.ok) throw new Error(`HTTP ${res.status}`);
110
110
  doc = await res.json();
111
111
  } catch (e) {
112
- throw new Error(
112
+ strapi2.log.error(
113
113
  errorMessages.DISCOVERY_FETCH_ERROR(discoveryUrl, e instanceof Error ? e.message : String(e))
114
114
  );
115
+ return;
115
116
  }
116
117
  const updates = {};
117
118
  for (const [docField, configKey] of FIELD_MAP) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "strapi-plugin-oidc",
3
- "version": "1.8.2",
3
+ "version": "1.8.3",
4
4
  "description": "A Strapi plugin that provides OpenID Connect (OIDC) authentication functionality for the Strapi Admin Panel.",
5
5
  "strapi": {
6
6
  "displayName": "OIDC Plugin",