
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
react-mat-authentication
Advanced tools
This is a fully customize authentication library where we can find login, forgot password, reset password, verify otp features
In this libary module will provide a custom, moduler UI authentication given below here:
Login feature is working fine now.
ILoginViaPasswordProps {
fieldConfig?: IFeild;
fieldGutter?: number;
buttonConfig?: any;
loader?: boolean;
subHead?: string;
onSubmitData?: (data: IFormInputs) => void | undefined;
redirectToForgotPassword?: () => void | undefined;
hideForgotPassword?: boolean;
hideRememberMe?: boolean;
}
import React, { useState } from "react";
import { useNavigate } from "react-router";
import { LoginViaPassword } from "react-mat-authentication";
const LoginComponent = () => {
const [loader, setLoader] = useState(false);
const navigate = useNavigate();
const redirectToForgotPasswordHandler = () => navigate("/forgot-password");
return (
<LoginViaPassword
fieldConfig={{ variant: "outlined" }}
loader={loader}
hideForgotPassword={true}
hideRememberMe={true}
onSubmitData={(data: any) => {
console.log(data);
setLoader(true);
setTimeout(() => {
setLoader(false);
}, 1000);
}}
redirectToForgotPassword={redirectToForgotPasswordHandler}
/>
);
};
export const Login = LoginComponent;
Forgot password feature is working fine now.
IForgotPasswordProps {
type: "mobile" | "email";
isCode?: boolean;
fieldConfig?: IFeild;
buttonConfig?: any;
loader?: boolean;
onSubmitData: (data: any) => any;
redirectToSignIn: () => void | undefined;
}
import React, { useState } from "react";
import { useNavigate } from "react-router";
import { ForgotPassword } from "react-mat-authentication";
const ForgotPasswordComponent = () => {
const [loader, setLoader] = useState(false);
const navigate = useNavigate();
const redirectToSigninHandler = () => navigate("/login");
return (
<div>
<ForgotPassword
type="mobile"
loader={loader}
onSubmitData={(data: any) => {
console.log(data);
setLoader(true);
setTimeout(() => {
setLoader(false);
navigate("/reset-password");
}, 1000);
}}
redirectToSignIn={redirectToSigninHandler}
/>
</div>
);
};
export const ForgotPasswordPage = ForgotPasswordComponent;
Reset password feature is working fine now.
IResetPasswordProps {
fieldConfig?: IFeild;
loader?: boolean;
buttonConfig?: any;
onSubmitData: (data: IFormInputs) => void | undefined;
redirectToSignIn: () => void | undefined;
}
import React, { useState } from "react";
import { useNavigate } from "react-router";
import { ResetPassword } from "react-mat-authentication";
export default function ResetPasswordPage() {
const [loader, setLoader] = useState(false);
const navigate = useNavigate();
const redirectToSigninHandler = () => navigate("/login");
return (
<div>
<ResetPassword
loader={loader}
onSubmitData={(data: any) => {
console.log(data);
setLoader(true);
setTimeout(() => {
setLoader(false);
navigate("/reset-password");
}, 1000);
}}
redirectToSignIn={redirectToSigninHandler}
/>
</div>
);
}
Verify OTP feature is working fine now.
IVerifyOTPProps {
buttonConfig?: any;
loader?: boolean;
numInputs?: number;
otpDuration?: number;
isInputNum?: boolean;
subHead?: string;
onSubmitData: (data: string) => void | undefined;
resendOTPData: () => void | undefined;
}
import React from "react";
import { VerifiOTP } from "react-mat-authentication";
export const VerifiOTPScreen = () => {
const [loader, setLoader] = React.useState(false);
const resendOtpHandler = () => {};
const submitHandler = (data: any) => {
console.log(data);
setLoader(true);
setTimeout(() => {
setLoader(false);
}, 1000);
};
return (
<div>
<VerifiOTP
loader={loader}
isInputNum={false}
numInputs={6}
otpDuration={5}
resendOTPData={resendOtpHandler}
onSubmitData={submitHandler}
/>
</div>
);
};
Use this css .otpContainer {
display: flex;
}
.otpInput {
width: 100% !important;
height: 3rem;
margin: 0 1rem;
font-size: 2rem;
text-align: center;
border: none;
outline: 0;
border-bottom: 1px solid rgba(0, 0, 0, 0.3);
}
.otpInput::-webkit-outer-spin-button,
.otpInput::-webkit-inner-spin-button {
-webkit-appearance: none;
}
/* Add breakpoint for iPhone */
@media only screen and (max-width: 375px) {
.otpInput {
width: 100% !important;
height: 1.5rem;
font-size: 1rem;
padding: 8px;
}
}
FAQs
This is a fully customize authentication library where we can find login, forgot password, reset password, verify otp features
We found that react-mat-authentication demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.