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

201
Visualizações
cognitoUser.signOut() is not signing user out in React JS
  const logout = () => {
    const user = Pool.getCurrentUser();
    if (user) {
      user.signOut();
    }
  };

here's my Logout code.

I tried this same code and hosted my react app in the S3 static host. it's working properly on s3 generated URL. signout is working without any error

now I connected a domain to my s3 hosted site. domain doesn't have SSL.

domain format : http://{subdomain}.{domain}.co

I am able to log in and perform all Cognito operation. I am also getting a valid token . but during signout, it's not working. why ?

is it because I am running without SSL? how to fix it . here's my code snippet for cookie storage setup as well

const authenticate = async (Username, Password) => {
    return await new Promise((resolve, reject) => {
      const user = new CognitoUser({
        Username,
        Pool,
        Storage: new CookieStorage({ domain: awsCookieStorageDomain , secure:false}),
      });

How to fix it.

about 4 years ago · Juan Pablo Isaza
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