fix: Mobile login redirects to homepage without showing Auth0 login page (#188) #193
@@ -120,6 +120,7 @@ const TokenInjector: React.FC<{ children: React.ReactNode }> = ({ children }) =>
|
|||||||
// Prevent stale session state when cached token is no longer valid
|
// Prevent stale session state when cached token is no longer valid
|
||||||
React.useEffect(() => {
|
React.useEffect(() => {
|
||||||
if (!isAuthenticated || isLoading || validatingRef.current) return;
|
if (!isAuthenticated || isLoading || validatingRef.current) return;
|
||||||
|
if (window.location.pathname === '/callback') return;
|
||||||
|
|
||||||
const validateToken = async () => {
|
const validateToken = async () => {
|
||||||
validatingRef.current = true;
|
validatingRef.current = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user