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

135
Visualizações
User identity undefined immediately after account

I'm using the @aws-amplify/ui-vue (2.1.2) and @aws-amplify/auth (4.4.1) npm packages along with Cognito to present user login to a webapp.

Whenever I create a new account and the user logs in for the first time to verify the name and change the temporary password, the user information and access credentials associated with the user's authenticated role are undefined. If the user reloads the page to sign in or signs out, then everything works as expected.

Is there a good way of ensuring the login session has defined credentials? How does one test the solution before it gets in front of a user?

<template>
  <authenticator :hide-sign-up="true">
    <template v-slot="{ user, signOut }">
      <!-- undef user fields 1st time only -->
      <p>Hello {{ user?.attributes?.name }}!</p>
      <!-- other AWS access, e.g. S3 reads, fail 1st time, too. -->
      <button @click="signOut">Sign Out</button>
    </template>
  </authenticator>
</template>

<script>
import { Authenticator } from '@aws-amplify/ui-vue';
import '@aws-amplify/ui-vue/styles.css';
import Amplify from 'aws-amplify';
import awsconfig from './aws-exports'; // amplify config

Amplify.configure(awsconfig);

export default {
  name: 'App',
  components: {
    Authenticator
  },
  data() {
    return {}
  }
}
</script>
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