From dcd6f9413b87ada4a1509eeb9a9a5efcc7b95a8a Mon Sep 17 00:00:00 2001 From: napomj <61099489+napomj@users.noreply.github.com> Date: Mon, 25 Jul 2022 20:18:41 -0700 Subject: [PATCH] Update authenticator.md Updating one of the code examples which seems to be out of date with the current Remix version. --- docs/authenticator.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/authenticator.md b/docs/authenticator.md index 147cfd0..62272cd 100644 --- a/docs/authenticator.md +++ b/docs/authenticator.md @@ -71,9 +71,10 @@ authenticator.use( This will depend a lot on what strategy you are using since each one may have different requirements. Continuing our example of the `LocalStrategy`, we need to create a `/login` route and call our authenticator there. ```tsx -import { ActionFunction, LoaderFunction, Form, redirect, json } from "remix"; -import { authenticator } from ".~/auth.server"; // import our authenticator -import { getSession, commitSession } from ".~/session.server"; +import { ActionFunction, LoaderFunction, redirect, json } from "@remix-run/node"; +import { Form } from "@remix-run/react"; +import { authenticator } from "~/auth.server"; // import our authenticator +import { getSession, commitSession } from "~/session.server"; export let action: ActionFunction = async ({ request }) => { // Authenticate the request and redirect to /dashboard if user is