@acuteinfo/common-screens 1.0.41 → 1.0.42
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 +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1220,6 +1220,7 @@ const reducer$1 = (state, action) => {
|
|
|
1220
1220
|
const AuthControllerWrapper = ({ bannerDetails, logoUrl, logoTitle, loginFn, veirfyUsernameandPassword, verifyOTP, OTPResendRequest, ResetPassword, LanguageComponent, forgotPasswordEndpoint, }) => {
|
|
1221
1221
|
const classes = useStyles$3();
|
|
1222
1222
|
const [loginState, dispath] = useReducer(reducer$1, inititalState$1);
|
|
1223
|
+
console.log("loginState<<", loginState);
|
|
1223
1224
|
const [openpwdreset, setOpenPwdReset] = useState(false);
|
|
1224
1225
|
const failureCount = useRef(0);
|
|
1225
1226
|
const [dashboardLogoURL, setDashboardLogoURL] = useState(null);
|
|
@@ -1246,6 +1247,7 @@ const AuthControllerWrapper = ({ bannerDetails, logoUrl, logoTitle, loginFn, vei
|
|
|
1246
1247
|
dispath({ type: "inititatePasswordVerification" });
|
|
1247
1248
|
// try {
|
|
1248
1249
|
const { status, data, message, responseType, access_token, } = await veirfyUsernameandPassword(username, password);
|
|
1250
|
+
console.log("status", status, "data", data, "message", message, "response", responseType, "access_token", access_token);
|
|
1249
1251
|
if (status === "0" && responseType === "S") {
|
|
1250
1252
|
dispath({
|
|
1251
1253
|
type: "passwordRotation",
|
|
@@ -1320,7 +1322,6 @@ const AuthControllerWrapper = ({ bannerDetails, logoUrl, logoTitle, loginFn, vei
|
|
|
1320
1322
|
const VerifyOTP = async (OTPNumber) => {
|
|
1321
1323
|
if (Boolean(OTPNumber) && OTPNumber.toString().length === 6) {
|
|
1322
1324
|
dispath({ type: "inititateOTPVerification" });
|
|
1323
|
-
console.log("loginstate1<<", loginState);
|
|
1324
1325
|
const { status, data, message } = await verifyOTP(loginState.transactionID,
|
|
1325
1326
|
// loginState.app_transactionId,
|
|
1326
1327
|
loginState.username, OTPNumber, loginState.access_token, loginState.token_type, loginState.authType);
|