mirror of
				https://github.com/steveiliop56/tinyauth.git
				synced 2025-10-30 21:55:43 +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(() => { |   useEffect(() => { | ||||||
|     if (isMounted()) { |     if (isMounted()) { | ||||||
|       if (oauthConfigured && configuredProviders.includes(oauthAutoRedirect)) { |       if ( | ||||||
|  |         oauthConfigured && | ||||||
|  |         configuredProviders.includes(oauthAutoRedirect) && | ||||||
|  |         redirectUri | ||||||
|  |       ) { | ||||||
|         oauthMutation.mutate(oauthAutoRedirect); |         oauthMutation.mutate(oauthAutoRedirect); | ||||||
|       } |       } | ||||||
|     } |     } | ||||||
|   }); |   }, []); | ||||||
|  |  | ||||||
|   return ( |   return ( | ||||||
|     <Card className="min-w-xs sm:min-w-sm"> |     <Card className="min-w-xs sm:min-w-sm"> | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Stavros
					Stavros