Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

123
Views
stop redirecting to the landing page with react route and auth0

I am trying to access authorised route(localhost:3000/abc) via non authenticated user. Then it will be redirecting to auth0 login screen successfully. But after I logged in via auth0, first it will redirect to the landing page with a query param(localhost:3000/code=f23set...) and then it goes to the authorised route(localhost:3000/abc) which I need. So how can I prevent from redirecting to the landing page(localhost:3000/code=f23set...)? My attempt is as below.

import { Route } from "react-router-dom";
import { useAuth0, withAuthenticationRequired } from "@auth0/auth0-react";

<Route
  component={withAuthenticationRequired(component, {
     onRedirecting: () => <span/> 
  })}
{...props} />
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!