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

242
Views
Por qué no me detectan (en promesa) Error: se requiere autenticación multifactor

Configuro mi proveedor auth0 e inicio sesión con redirección como se muestra a continuación

 // auth0-provider-with-history.js const Auth0ProviderWithHistory = ({ children }) => { const domain = process.env.REACT_APP_AUTH0_DOMAIN; const clientId = process.env.REACT_APP_AUTH0_CLIENT_ID; const audience = process.env.REACT_APP_AUTH0_API_AUDIENCE; const navigate = useNavigate(); const onRedirectCallback = (appState) => { navigate(appState?.returnTo || window.location.pathname); }; return ( <Auth0Provider domain={domain} clientId={clientId} redirectUri={window.location.origin} onRedirectCallback={onRedirectCallback} audience={audience} useRefreshTokens={true} scope="openid profile email read:current_user" > {children} </Auth0Provider> ); };
 // profile.js const { isLoading, loginWithRedirect, isAuthenticated, user, getAccessTokenSilently } = useAuth0(); React.useEffect(() => { if (isLoading || isAuthenticated)return; loginWithRedirect({ scope: "openid profile email read:current_user", }); }, [isLoading, isAuthenticated, loginWithRedirect]);

y debajo está la regla que estoy usando para habilitar MFA para el cliente de reacción SPA

 function multifactorAuthentication(user, context, callback) { if (context.clientID === 'MY_CLIENT_ID'){ context.multifactor = { provider: 'any', allowRememberBrowser: false }; } callback(null, user, context); }

pero recibo el siguiente error después de enviar el código OTP y nuevamente me redirige a la página del código de verificación.

Uncaught (in promise) Error: Multifactor authentication required Error Screenshort ingrese la descripción de la imagen aquí

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!