@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.mjs CHANGED
@@ -1136,7 +1136,8 @@ var DEFAULT_AUTH_ORIGIN = "https://ochk.io";
1136
1136
  async function fetchOcLinkedIdentities(opts) {
1137
1137
  const authOrigin = opts?.authOrigin ?? DEFAULT_AUTH_ORIGIN;
1138
1138
  const r = await fetch(`${authOrigin}/api/auth/identities`, {
1139
- credentials: "include"
1139
+ credentials: "include",
1140
+ headers: { ...tabSessionHeader() }
1140
1141
  });
1141
1142
  if (r.status === 401) return [];
1142
1143
  if (!r.ok) throw new Error(`identities fetch failed: http_${r.status}`);
@@ -1156,7 +1157,8 @@ function OcLinkedIdentities({
1156
1157
  setError(null);
1157
1158
  try {
1158
1159
  const r = await fetch(`${authOrigin}/api/auth/identities`, {
1159
- credentials: "include"
1160
+ credentials: "include",
1161
+ headers: { ...tabSessionHeader() }
1160
1162
  });
1161
1163
  if (!r.ok) {
1162
1164
  if (r.status === 401) {