Skip to content

Commit

Permalink
Fix callback url
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredpalmer committed Jun 16, 2023
1 parent 972bfa6 commit 2c6777e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion components/login-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export function LoginButton({
variant="outline"
onClick={() => {
setIsLoading(true)
signIn('github')
signIn('github', { callbackUrl: `/` })
}}
disabled={isLoading}
className={cn(className)}
Expand Down
4 changes: 0 additions & 4 deletions middleware.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
export { auth as middleware } from './auth'

export const config = {
matcher: ['/']
}

0 comments on commit 2c6777e

Please sign in to comment.