Fix callback url

This commit is contained in:
Jared Palmer 2023-06-16 16:53:34 -04:00
parent 972bfa64ec
commit 2c6777e82d
2 changed files with 1 additions and 5 deletions

View file

@ -25,7 +25,7 @@ export function LoginButton({
variant="outline" variant="outline"
onClick={() => { onClick={() => {
setIsLoading(true) setIsLoading(true)
signIn('github') signIn('github', { callbackUrl: `/` })
}} }}
disabled={isLoading} disabled={isLoading}
className={cn(className)} className={cn(className)}

View file

@ -1,5 +1 @@
export { auth as middleware } from './auth' export { auth as middleware } from './auth'
export const config = {
matcher: ['/']
}