we've created a refine project and we want to connect it with our oauth2 service, our auth provider has userId:password logic instead of email:password combo, we tried customizing AuthPage
but it does'nt have such customization capability, it just can set header footer or change style of the page. like this:
import { Link } from "react-router-dom";
import { AuthPage } from "@refinedev/mui";
const LoginPage: React.FC = () => {
return (
<AuthPage
type="login"
rememberMe={
<div
style={{
border: "1px dashed cornflowerblue",
padding: 3,
}}
>
<input name="CustomRememberMe" type="checkbox" /> remember me
</div>
}
registerLink={
<div
style={{
border: "1px dashed cornflowerblue",
marginTop: 5,
padding: 5,
}}
>
<Link to="/register">Register</Link>
</div>
}
forgotPasswordLink={
<div
style={{
border: "1px dashed cornflowerblue",
marginTop: 5,
padding: 5,
}}
>
<Link to="/forgot-password">Forgot Password</Link>
</div>
}
wrapperProps={{
style: {
background: "linear-gradient(45deg, #FE6B8B 30%, #FF8E53 90%)",
position: "absolute",
top: "0px",
right: "0px",
bottom: "0px",
left: "0px",
},
}}
contentProps={{
style: {
background: "linear-gradient(45deg, #FE6B8B 30%, #FF8E53 90%)",
},
}}
renderContent={(content: React.ReactNode) => {
return (
<div
style={{
display: "flex",
flexDirection: "column",
justifyContent: "center",
alignItems: "center",
}}
>
<h1>Header</h1>
{content}
<h2>Footer</h2>
</div>
);
}}
/>
);
};
export default LoginPage;
How can I customize my login page more and use userId instead of email