From 2c6777e82da599f9e3ebaf08b1e86622fe241da5 Mon Sep 17 00:00:00 2001 From: Jared Palmer Date: Fri, 16 Jun 2023 16:53:34 -0400 Subject: [PATCH] Fix callback url --- components/login-button.tsx | 2 +- middleware.ts | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/components/login-button.tsx b/components/login-button.tsx index 54207f7..2d49553 100644 --- a/components/login-button.tsx +++ b/components/login-button.tsx @@ -25,7 +25,7 @@ export function LoginButton({ variant="outline" onClick={() => { setIsLoading(true) - signIn('github') + signIn('github', { callbackUrl: `/` }) }} disabled={isLoading} className={cn(className)} diff --git a/middleware.ts b/middleware.ts index af5b703..4afe145 100644 --- a/middleware.ts +++ b/middleware.ts @@ -1,5 +1 @@ export { auth as middleware } from './auth' - -export const config = { - matcher: ['/'] -}