mirror of
				https://github.com/steveiliop56/tinyauth.git
				synced 2025-11-04 08:05:42 +00:00 
			
		
		
		
	Compare commits
	
		
			3 Commits
		
	
	
		
			nightly
			...
			feat/light
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						 | 
					95dced96ae | ||
| 
						 | 
					2c3b72353a | ||
| 
						 | 
					f5f18bc2f6 | 
							
								
								
									
										5
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										5
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							@@ -29,11 +29,6 @@ jobs:
 | 
				
			|||||||
        run: |
 | 
					        run: |
 | 
				
			||||||
          echo testing > internal/assets/version
 | 
					          echo testing > internal/assets/version
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      - name: Lint frontend
 | 
					 | 
				
			||||||
        run: |
 | 
					 | 
				
			||||||
          cd frontend
 | 
					 | 
				
			||||||
          bun run lint
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
      - name: Build frontend
 | 
					      - name: Build frontend
 | 
				
			||||||
        run: |
 | 
					        run: |
 | 
				
			||||||
          cd frontend
 | 
					          cd frontend
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -9,7 +9,7 @@ export const isValidUrl = (url: string) => {
 | 
				
			|||||||
  try {
 | 
					  try {
 | 
				
			||||||
    new URL(url);
 | 
					    new URL(url);
 | 
				
			||||||
    return true;
 | 
					    return true;
 | 
				
			||||||
  } catch {
 | 
					  } catch (e) {
 | 
				
			||||||
    return false;
 | 
					    return false;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -76,14 +76,7 @@ export const ContinuePage = () => {
 | 
				
			|||||||
      clearTimeout(auto);
 | 
					      clearTimeout(auto);
 | 
				
			||||||
      clearTimeout(reveal);
 | 
					      clearTimeout(reveal);
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
  }, [
 | 
					  }, []);
 | 
				
			||||||
    handleRedirect,
 | 
					 | 
				
			||||||
    isAllowedRedirectProto,
 | 
					 | 
				
			||||||
    isHttpsDowngrade,
 | 
					 | 
				
			||||||
    isLoggedIn,
 | 
					 | 
				
			||||||
    isTrustedRedirectUri,
 | 
					 | 
				
			||||||
    isValidRedirectUri,
 | 
					 | 
				
			||||||
  ]);
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
  if (!isLoggedIn) {
 | 
					  if (!isLoggedIn) {
 | 
				
			||||||
    return (
 | 
					    return (
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -119,8 +119,6 @@ export const LoginPage = () => {
 | 
				
			|||||||
        !isLoggedIn &&
 | 
					        !isLoggedIn &&
 | 
				
			||||||
        redirectUri
 | 
					        redirectUri
 | 
				
			||||||
      ) {
 | 
					      ) {
 | 
				
			||||||
        // Not sure of a better way to do this
 | 
					 | 
				
			||||||
        // eslint-disable-next-line react-hooks/set-state-in-effect
 | 
					 | 
				
			||||||
        setOauthAutoRedirectHandover(true);
 | 
					        setOauthAutoRedirectHandover(true);
 | 
				
			||||||
        oauthMutation.mutate(oauthAutoRedirect);
 | 
					        oauthMutation.mutate(oauthAutoRedirect);
 | 
				
			||||||
        redirectButtonTimer.current = window.setTimeout(() => {
 | 
					        redirectButtonTimer.current = window.setTimeout(() => {
 | 
				
			||||||
@@ -128,15 +126,7 @@ export const LoginPage = () => {
 | 
				
			|||||||
        }, 5000);
 | 
					        }, 5000);
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  }, [
 | 
					  }, []);
 | 
				
			||||||
    isMounted,
 | 
					 | 
				
			||||||
    oauthProviders.length,
 | 
					 | 
				
			||||||
    providers,
 | 
					 | 
				
			||||||
    isLoggedIn,
 | 
					 | 
				
			||||||
    redirectUri,
 | 
					 | 
				
			||||||
    oauthAutoRedirect,
 | 
					 | 
				
			||||||
    oauthMutation,
 | 
					 | 
				
			||||||
  ]);
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
  useEffect(
 | 
					  useEffect(
 | 
				
			||||||
    () => () => {
 | 
					    () => () => {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user