每当我登录时
// twitch signin handler
const handleTwitchSignIn = async () => {
const { data, error } = await supabase.auth.signInWithOAuth({
provider: "twitch",
options: {
redirectTo: `${location.origin}/${lang}/auth/callback`,
},
});
};
// google signin handler
const handleGoogleSignIn = async () => {
const { data, error } = await supabase.auth.signInWithOAuth({
provider: "google",
options: {
redirectTo: `${location.origin}/${lang}/auth/callback`,
},
});
};
我没有收到任何应该重定向到
/auth/callback
的“代码”参数。
似乎没有一个医生谈论这个。我看到 cookie 值是代码验证程序,但 url 中缺少代码本身。