@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.esm.js CHANGED
@@ -1961,8 +1961,7 @@ var MFAOptions = function (_a) {
1961
1961
  // 3. Send the assertion back to the server for verification
1962
1962
  console.log("Sending assertion to server for verification...");
1963
1963
  return [4 /*yield*/, axios.post(MFAEndpoints.AuthChallengeVerify, assertionResponse, {
1964
- headers: APIHeaders,
1965
- withCredentials: true, // credentials: 'include'
1964
+ headers: APIHeaders
1966
1965
  })];
1967
1966
  case 3:
1968
1967
  _a.sent();
@@ -2214,9 +2213,8 @@ var DefaultLoginPage = function (_a) {
2214
2213
  console.log("Passkey created on client:", attestationResponse);
2215
2214
  // 3. Send the response back to the server for verification
2216
2215
  console.log("Sending attestation to server for verification...");
2217
- return [4 /*yield*/, axios.post(MFAEndpoints.RegisterVerify, attestationResponse, {
2218
- headers: APIHeaders,
2219
- withCredentials: true, // credentials: 'include'
2216
+ return [4 /*yield*/, axios.post(MFAEndpoints.RegisterVerify + "?username=".concat(data.username), attestationResponse, {
2217
+ headers: APIHeaders
2220
2218
  })];
2221
2219
  case 3:
2222
2220
  _a.sent();