The other way to change the login UI, (which is mo...
# support-questions-legacy
r
The other way to change the login UI, (which is more complex, but more fullproof), is to create your own "theme". This can be done by: - Disabling the default UI for the sign in page by setting
disableDefaultImplementation
to
true
in
signInAndUpFeature
when calling the
init
function (see https://supertokens.io/docs/auth-react/emailpassword/init). This will basically remove the UI from
/auth
. This mean you can handle this route to render anything you like. - Then you would need to create your own component to show the login UI:
Copy code
js
import {SignInAndUp} from "supertokens-auth-react/recipe/emailpassword";

render() {
  return (
    <SignInAndUp>
      <YOUR UI COMPONENT GOES HERE>
    </SignInAndUp>
  );
}
3 Views