Fix callback url
This commit is contained in:
parent
972bfa64ec
commit
2c6777e82d
2 changed files with 1 additions and 5 deletions
|
|
@ -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)}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1 @@
|
||||||
export { auth as middleware } from './auth'
|
export { auth as middleware } from './auth'
|
||||||
|
|
||||||
export const config = {
|
|
||||||
matcher: ['/']
|
|
||||||
}
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue