mirror of
				https://github.com/steveiliop56/tinyauth.git
				synced 2025-10-30 21:55:43 +00:00 
			
		
		
		
	refactor: use window.location.href for redirects
This commit is contained in:
		| @@ -65,8 +65,12 @@ export const LoginPage = () => { | ||||
|         color: "green", | ||||
|       }); | ||||
|       setTimeout(() => { | ||||
|         window.location.replace(`/continue?redirect_uri=${redirectUri}`); | ||||
|       }); | ||||
|         if (redirectUri === "null") { | ||||
|           window.location.replace("/"); | ||||
|         } else { | ||||
|           window.location.replace(`/continue?redirect_uri=${redirectUri}`); | ||||
|         } | ||||
|       }, 500); | ||||
|     }, | ||||
|   }); | ||||
|  | ||||
| @@ -84,7 +88,14 @@ export const LoginPage = () => { | ||||
|       }); | ||||
|     }, | ||||
|     onSuccess: (data) => { | ||||
|       window.location.replace(data.data.url); | ||||
|       notifications.show({ | ||||
|         title: "Redirecting", | ||||
|         message: "Redirecting to your OAuth provider", | ||||
|         color: "blue", | ||||
|       }); | ||||
|       setTimeout(() => { | ||||
|         window.location.href = data.data.url; | ||||
|       }, 500); | ||||
|     }, | ||||
|   }); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Stavros
					Stavros