Deleted User
11/27/2021, 6:43 AMjs
const { error } = await supabase.auth.signIn(
{
provider: "github",
},
{
redirectTo: `http://localhost:3000${window.location.pathname}${window.location.search}${window.location.hash}`,
}
);
The problem is that it always redirects to my main page I specified in the dashboard's Settings.
http://localhost:3000
is whitelisted in my dashboard's settings, however, it only works if it's only http://localhost:3000
and nothing else, such as http://localhost:3000/...
.
?redirect=http://localhost:3000/...
and handle the redirect myself. However, I found this not ideal as I have my sign in component in my navbar.silentworks
11/27/2021, 4:03 PMDeleted User
11/27/2021, 9:36 PMsilentworks
11/28/2021, 1:03 AMDeleted User
11/28/2021, 1:04 AMDeleted User
11/28/2021, 5:31 AM