From bb85f295ddba816c4538e44383ad820f9b5b8903 Mon Sep 17 00:00:00 2001 From: Mahmoud Moravej <55846417+mahmoudmoravej@users.noreply.github.com> Date: Tue, 14 Nov 2023 16:20:41 +0000 Subject: [PATCH] fixed formating issues --- README.md | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) 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', + }) +} ```