Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

155
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda