-
How can I pass by a import { LoaderFunction } from "@remix-run/node";
import { authenticator } from "~/services/auth.server";
export let loader: LoaderFunction = ({ request }) => {
return authenticator.authenticate("google", request, {
successRedirect: "/", // <--- redirectTo?
failureRedirect: "/auth/signup",
});
}; |
Beta Was this translation helpful? Give feedback.
Answered by
sergiodxa
Apr 28, 2022
Replies: 1 comment
-
I wrote about this here https://sergiodxa.com/articles/add-returnto-behavior-to-remix-auth |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
binajmen
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I wrote about this here https://sergiodxa.com/articles/add-returnto-behavior-to-remix-auth