mirror of
https://github.com/steveiliop56/tinyauth.git
synced 2025-10-28 12:45:47 +00:00
fix: run oauth auto redirect only when there is a redirect URI
This commit is contained in:
@@ -96,11 +96,15 @@ export const LoginPage = () => {
|
||||
|
||||
useEffect(() => {
|
||||
if (isMounted()) {
|
||||
if (oauthConfigured && configuredProviders.includes(oauthAutoRedirect)) {
|
||||
if (
|
||||
oauthConfigured &&
|
||||
configuredProviders.includes(oauthAutoRedirect) &&
|
||||
redirectUri
|
||||
) {
|
||||
oauthMutation.mutate(oauthAutoRedirect);
|
||||
}
|
||||
}
|
||||
});
|
||||
}, []);
|
||||
|
||||
return (
|
||||
<Card className="min-w-xs sm:min-w-sm">
|
||||
|
||||
Reference in New Issue
Block a user