readme update
This commit is contained in:
@@ -141,7 +141,9 @@ const AuthPage = ({ mode }) => {
|
||||
}
|
||||
};
|
||||
|
||||
const handleGoogleSignIn = async () => {
|
||||
const GOOGLE_REDIRECT_URL = import.meta.env.VITE_GOOGLE_REDIRECT_URL || window.location.origin;
|
||||
|
||||
const handleGoogleSignIn = async () => {
|
||||
setFormError(null);
|
||||
setFormMessage(null);
|
||||
if (!supabaseClient) {
|
||||
@@ -153,7 +155,7 @@ const AuthPage = ({ mode }) => {
|
||||
const { error } = await supabaseClient.auth.signInWithOAuth({
|
||||
provider: 'google',
|
||||
options: {
|
||||
redirectTo: window.location.origin,
|
||||
redirectTo: GOOGLE_REDIRECT_URL,
|
||||
},
|
||||
});
|
||||
if (error) throw error;
|
||||
@@ -198,7 +200,7 @@ const AuthPage = ({ mode }) => {
|
||||
fontSize: { xs: '1.35rem', md: '1.6rem' },
|
||||
}}
|
||||
>
|
||||
imagepub
|
||||
imagepubs
|
||||
</Typography>
|
||||
<Typography variant="overline" sx={{ color: '#B5AD9A', letterSpacing: 2 }}>
|
||||
{variant.eyebrow}
|
||||
|
||||
Reference in New Issue
Block a user