diff --git a/README.md b/README.md index b8fe0a1..5660cdf 100644 --- a/README.md +++ b/README.md @@ -55,25 +55,25 @@ export default function Login() { ```tsx // app/routes/auth.google.tsx -import { redirect, type ActionFunctionArgs } from "@remix-run/node"; -import { authenticator } from "~/services/auth.server"; +import { redirect, type ActionFunctionArgs } from '@remix-run/node' +import { authenticator } from '~/services/auth.server' -export let loader = () => redirect("/login"); +export let loader = () => redirect('/login') export let action = ({ request }: ActionFunctionArgs) => { - return authenticator.authenticate("google", request); -}; + return authenticator.authenticate('google', request) +} ``` ```tsx // app/routes/auth.google.callback.tsx -import type { LoaderFunctionArgs } from "@remix-run/node"; -import { authenticator } from "~/services/auth.server"; +import type { LoaderFunctionArgs } from '@remix-run/node' +import { authenticator } from '~/services/auth.server' export let loader = ({ request }: LoaderFunctionArgs) => { - return authenticator.authenticate("google", request, { - successRedirect: "/dashboard", - failureRedirect: "/login", - }); -}; + return authenticator.authenticate('google', request, { + successRedirect: '/dashboard', + failureRedirect: '/login', + }) +} ```