@nibssplc/cams-sdk-react 1.0.0-rc.3 → 1.0.0-rc.5

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.cjs.js CHANGED
@@ -1982,8 +1982,7 @@ var MFAOptions = function (_a) {
1982
1982
  // 3. Send the assertion back to the server for verification
1983
1983
  console.log("Sending assertion to server for verification...");
1984
1984
  return [4 /*yield*/, axios.post(MFAEndpoints.AuthChallengeVerify, assertionResponse, {
1985
- headers: APIHeaders,
1986
- withCredentials: true, // credentials: 'include'
1985
+ headers: APIHeaders
1987
1986
  })];
1988
1987
  case 3:
1989
1988
  _a.sent();
@@ -2235,9 +2234,8 @@ var DefaultLoginPage = function (_a) {
2235
2234
  console.log("Passkey created on client:", attestationResponse);
2236
2235
  // 3. Send the response back to the server for verification
2237
2236
  console.log("Sending attestation to server for verification...");
2238
- return [4 /*yield*/, axios.post(MFAEndpoints.RegisterVerify, attestationResponse, {
2239
- headers: APIHeaders,
2240
- withCredentials: true, // credentials: 'include'
2237
+ return [4 /*yield*/, axios.post(MFAEndpoints.RegisterVerify + "?username=".concat(data.username), attestationResponse, {
2238
+ headers: APIHeaders
2241
2239
  })];
2242
2240
  case 3:
2243
2241
  _a.sent();