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

87
Views
La firma de React-Google sigue cerrando sesión al actualizar/recargar

Estoy trabajando en una aplicación de reacción usando redux y React-Google-login para autenticar al usuario. Noté que al iniciar sesión, puedo acceder a los tokens de inicio de sesión y otra información del usuario, pero cuando actualizo la página, se pierde toda la información sobre el usuario y la aplicación vuelve a su estado original.

Por favor, ¿cómo soluciono esto?

 //login function const login = (response) => { console.log(response); dispatch(setSignedIn(true)); dispatch(setUserData(response.profileObj)); } <GoogleLogin clientId='*******************' render={(renderProps) => ( <button onClick={renderProps.onClick} disabled={renderProps.disabled} className='login-button' > Login with Google </button> )} onSuccess={login} onFailure={login} isSignedIn={true} cookiePolicy={'single_host_origin'} />
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!