Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

154
Vistas
gapi.auth2.getAuthInstance().signIn() automatically signs in the previous user after signOut()

When you sign out the currently signed-in user with:

gapi.auth2.getAuthInstance().signOut();

And then call:

gapi.auth2.getAuthInstance().signIn();

The previously signed-in user will automatically get signed in again.

How do I instead show the option to sign in with a different Google account? Does signOut() not actually sign out the user?

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

You can force showing the account selection screen by passing the prompt SignInOptions option to signIn():

gapi.auth2.getAuthInstance().signIn({
    prompt: 'select_account'
});

signOut() signs the user out of your app without signing them out of Google. Therefore, the same user can sign back into your app without a prompt, because they are already signed into Google and because the app still has access to all the previously-accepted scopes.

You could remove the previously-accepted scopes by calling disconnect(), but then the user will have to accept the same scopes again, which is probably not what you want.

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda