@orangecheck/auth-client 2.21.0 → 2.22.0

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.
package/dist/index.js CHANGED
@@ -1158,7 +1158,8 @@ var DEFAULT_AUTH_ORIGIN = "https://ochk.io";
1158
1158
  async function fetchOcLinkedIdentities(opts) {
1159
1159
  const authOrigin = opts?.authOrigin ?? DEFAULT_AUTH_ORIGIN;
1160
1160
  const r = await fetch(`${authOrigin}/api/auth/identities`, {
1161
- credentials: "include"
1161
+ credentials: "include",
1162
+ headers: { ...tabSessionHeader() }
1162
1163
  });
1163
1164
  if (r.status === 401) return [];
1164
1165
  if (!r.ok) throw new Error(`identities fetch failed: http_${r.status}`);
@@ -1178,7 +1179,8 @@ function OcLinkedIdentities({
1178
1179
  setError(null);
1179
1180
  try {
1180
1181
  const r = await fetch(`${authOrigin}/api/auth/identities`, {
1181
- credentials: "include"
1182
+ credentials: "include",
1183
+ headers: { ...tabSessionHeader() }
1182
1184
  });
1183
1185
  if (!r.ok) {
1184
1186
  if (r.status === 401) {