From 7a2dd683e3b4474aa9262534ef33f382cee1ac2a Mon Sep 17 00:00:00 2001 From: Bhanu Teja Pachipulusu Date: Sun, 12 Dec 2021 05:46:13 +0530 Subject: [PATCH] fix the bug in the github callback of example app. --- examples/github/app/routes/auth.github.callback.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/github/app/routes/auth.github.callback.tsx b/examples/github/app/routes/auth.github.callback.tsx index 6a9cd22..12e72bd 100644 --- a/examples/github/app/routes/auth.github.callback.tsx +++ b/examples/github/app/routes/auth.github.callback.tsx @@ -1,8 +1,8 @@ import { LoaderFunction } from "remix"; import { authenticator } from "~/services/auth.server"; -export let loader: LoaderFunction = async ({ request }) => { - await authenticator.authenticate("github", request, { +export let loader: LoaderFunction = ({ request }) => { + return authenticator.authenticate("github", request, { successRedirect: "/", failureRedirect: "/login", });