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

133
Views
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
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!