# Removing the default authentication methods  If you decide you want to remove one of the default authentication methods Gadget provides you when starting your app, simply head over to **Plugins** section in the **Settings** page. Depending on the method you want to remove, you can click the three dot icon to the right and hit `remove authentication method`, or navigate into the auth method and click the button that says `remove authentication method`. This will remove all applied triggers from the `User` model for the auth method. You will be required to remove certain UI and make adjustments to your `User` model to get your app into a working state. ## Google  ### `User` model configuration  Remove the following fields from the `User` model: * `googleImageURL` * `googleProfileId` ### Frontend - UI configuration  Paste the following code snippets into the corresponding files. #### Sign up component  ```tsx import { useActionForm } from "@gadgetinc/react"; import { api } from "../api"; export default function SignUp() { const { register, submit, formState: { errors, isSubmitSuccessful, isSubmitting }, } = useActionForm(api.user.signUp); return (

Create account

{errors?.user?.email?.message &&

Email: {errors.user.email.message}

} {errors?.user?.password?.message &&

Password: {errors.user.password.message}

} {errors?.root?.message &&

{errors.root.message}

} {isSubmitSuccessful &&

Please check your inbox

}
); } ``` #### Sign in component  ```tsx import { useActionForm } from "@gadgetinc/react"; import { api } from "../api"; import { Link } from "react-router"; export default function SignIn() { const { register, submit, formState: { errors, isSubmitting }, } = useActionForm(api.user.signIn); return (

Sign in

{errors?.root?.message &&

{errors.root.message}

}

Forgot your password? Reset password

); } ``` ## Email-Password  ### `User` model configuration  Remove the following fields from the `User` model: * `resetPasswordTokenExpiration` * `password` * `resetPasswordToken` * `emailVerificationTokenExpiration` * `emailVerificationToken` * `emailVerified` Also proceed and delete the following actions within the `User` model and User folder within your files: * `sendVerifyEmail` * `verifyEmail` * `resetPassword` * `sendResetPassword` * `changePassword` ### Frontend - UI configuration  Paste the following code snippets into the corresponding files and delete the following files from the routes within your frontend folder: * `change-password.jsx` * `reset-password.jsx` * `forgot-password.jsx` * `verify-email.jsx` #### Sign up component  ```typescript import GoogleIcon from "../assets/google.svg"; import { useLocation } from "react-router"; export default function () { const { search } = useLocation(); return (

Create account

Continue with Google
); } ``` #### Sign in component  ```typescript import GoogleIcon from "../assets/google.svg"; import { useLocation } from "react-router"; export default function () { const { search } = useLocation(); return (

Sign in

Continue with Google
); } ``` ### App component  ```typescript import { SignedInOrRedirect, SignedOut, SignedOutOrRedirect, } from "@gadgetinc/react"; import { Suspense, useEffect } from "react"; import { Outlet, Route, RouterProvider, createBrowserRouter, createRoutesFromElements, Link, } from "react-router"; import "./App.css"; import Index from "./routes/index"; import SignedInPage from "./routes/signed-in"; import SignInPage from "./routes/sign-in"; import SignUpPage from "./routes/sign-up"; const App = () => { useEffect(() => { document.title = `Home - ${process.env["GADGET_APP"]} - Gadget`; }, []); const router = createBrowserRouter( createRoutesFromElements( }> } /> } /> } /> } /> ) ); return ( }> ); }; const Layout = () => { return ( <>
); }; const Header = () => { return (
{process.env["GADGET_APP"]}
Sign in Sign up
); }; export default App; ```