Skip to content

Commit

Permalink
fixed formating issues
Browse files Browse the repository at this point in the history
  • Loading branch information
mahmoudmoravej authored and pbteja1998 committed Jun 4, 2024
1 parent 5a943da commit bb85f29
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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',
})
}
```

0 comments on commit bb85f29

Please sign in to comment.