@nibssplc/cams-sdk-react 1.0.0-rc.2 → 1.0.0-rc.4
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 +3 -5
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +3 -5
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
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();
|
|
@@ -2165,7 +2164,7 @@ var ADLoginModal = function (_a) {
|
|
|
2165
2164
|
form.reset();
|
|
2166
2165
|
setMfaCode("");
|
|
2167
2166
|
};
|
|
2168
|
-
return (jsxRuntimeExports.jsx(Dialog, { open: open, onOpenChange: handleClose, children: jsxRuntimeExports.jsxs(DialogContent, { className: "
|
|
2167
|
+
return (jsxRuntimeExports.jsx(Dialog, { open: open, onOpenChange: handleClose, children: jsxRuntimeExports.jsxs(DialogContent, { className: "min-w-[50vw] max-w-[70vw]", children: [jsxRuntimeExports.jsx(DialogHeader, { children: jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-2", children: [jsxRuntimeExports.jsx(lucideReact.KeyIcon, { className: "w-8 h-8 text-[#506f4a]" }), jsxRuntimeExports.jsx(DialogTitle, { className: "text-2xl", children: "Sign in with AD" })] }) }), step === "credentials" ? (jsxRuntimeExports.jsx(Form, __assign({}, form, { children: jsxRuntimeExports.jsxs("form", { onSubmit: form.handleSubmit(handleCredentialsSubmit), className: "space-y-4", children: [jsxRuntimeExports.jsx(FormField, { control: form.control, name: "username", render: function (_a) {
|
|
2169
2168
|
var field = _a.field;
|
|
2170
2169
|
return (jsxRuntimeExports.jsxs(FormItem, { children: [jsxRuntimeExports.jsx(FormLabel, { children: "Username" }), jsxRuntimeExports.jsx(FormControl, { children: jsxRuntimeExports.jsx(Input, __assign({ className: "h-12", placeholder: "Enter your username" }, field)) }), jsxRuntimeExports.jsx(FormMessage, {})] }));
|
|
2171
2170
|
} }), jsxRuntimeExports.jsx(FormField, { control: form.control, name: "password", render: function (_a) {
|
|
@@ -2236,8 +2235,7 @@ var DefaultLoginPage = function (_a) {
|
|
|
2236
2235
|
// 3. Send the response back to the server for verification
|
|
2237
2236
|
console.log("Sending attestation to server for verification...");
|
|
2238
2237
|
return [4 /*yield*/, axios.post(MFAEndpoints.RegisterVerify, attestationResponse, {
|
|
2239
|
-
headers: APIHeaders
|
|
2240
|
-
withCredentials: true, // credentials: 'include'
|
|
2238
|
+
headers: APIHeaders
|
|
2241
2239
|
})];
|
|
2242
2240
|
case 3:
|
|
2243
2241
|
_a.sent();
|