mirror of
https://github.com/supabase/supabase.git
synced 2026-10-11 20:35:07 +03:00
Change the redirects for Github and SSO to send the user back to / instead of /projects as before. It will be picked from there by the SignInLayout and WithAuth helper.
This commit is contained in:
1 parent
7ac9460104
commit
6fa7acd622
2 files changed
+4
-4
No files matched your search
@@ -38,7 +38,7 @@ const SignInSSOForm = () => {
|
||||
process.env.NEXT_PUBLIC_VERCEL_ENV === 'preview'
|
||||
? location.origin
|
||||
: process.env.NEXT_PUBLIC_SITE_URL
|
||||
}${BASE_PATH}${getReturnToPath()}`,
|
||||
}${BASE_PATH}${getReturnToPath('/')}`,
|
||||
},
|
||||
})
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import { useState } from 'react'
|
||||
import * as Sentry from '@sentry/nextjs'
|
||||
import { BASE_PATH } from 'lib/constants'
|
||||
import { auth, getReturnToPath } from 'lib/gotrue'
|
||||
import { incrementSignInClicks } from 'lib/local-storage'
|
||||
import { useState } from 'react'
|
||||
import { Button, IconGitHub } from 'ui'
|
||||
import * as Sentry from '@sentry/nextjs'
|
||||
|
||||
const SignInWithGitHub = () => {
|
||||
const [loading, setLoading] = useState(false)
|
||||
@@ -24,7 +24,7 @@ const SignInWithGitHub = () => {
|
||||
process.env.NEXT_PUBLIC_VERCEL_ENV === 'preview'
|
||||
? location.origin
|
||||
: process.env.NEXT_PUBLIC_SITE_URL
|
||||
}${BASE_PATH}${getReturnToPath()}`,
|
||||
}${BASE_PATH}${getReturnToPath('/')}`,
|
||||
},
|
||||
})
|
||||
if (error) throw error
|
||||
|
||||
Reference in new issue
Block a user