Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When I sign up account MFA qr code always show ''Loading...'' #4919

Closed
lee56560 opened this issue Jan 18, 2024 · 1 comment · Fixed by #4923
Closed

When I sign up account MFA qr code always show ''Loading...'' #4919

lee56560 opened this issue Jan 18, 2024 · 1 comment · Fixed by #4923
Assignees
Labels
Authenticator An issue or a feature-request for an Authenticator UI Component bug Something isn't working

Comments

@lee56560
Copy link

When I sign up account , setup totp qr code always show Loading... .
so I back to sign in, totp qr code will normal display, I don't know why? how can I do fix it?
網頁擷取_18-1-2024_145654_localhost

<template>
  <authenticator :sign-up-attributes="['email','name', 'phone_number']">

    <template v-slot:sign-up-header>
      <h3 class="amplify-heading" style="padding: var(--amplify-space-xl) 0 0 var(--amplify-space-xl)">
        Create a new account
      </h3>
    </template>

    <template v-slot:header>
      <div style="padding: var(--amplify-space-large); text-align: center">
        <img class="amplify-image" alt="Amplify logo" src="https://docs.amplify.aws/assets/logo-dark.svg" />
      </div>
    </template>

    <template v-slot:sign-in-header>
      <h3 class="amplify-heading" style="padding: var(--amplify-space-xl) 0 0 var(--amplify-space-xl)">
        Sign in to your account
      </h3>
    </template>

    <template v-slot="{ user, signOut }">
      <router-view v-if="isRouterAlive" />
    </template>

    <template v-slot:footer>
      <div style="padding: var(--amplify-space-large); text-align: center">
        <p class="amplify-text" style="color: var(--amplify-colors-neutral-80)">
          © All Rights Reserved
        </p>
      </div>
    </template>
    
    <template v-slot:set-up-Totp>

    </template>

  </authenticator>
</template>

<script setup>
import { ref, toRefs, provide, nextTick } from 'vue';
import { Authenticator, useAuthenticator } from '@aws-amplify/ui-vue';


const { signOut } = toRefs(useAuthenticator());

const isRouterAlive = ref(true);


const reload = () => {
  isRouterAlive.value = false;
  nextTick(() => {
    isRouterAlive.value = true;
  })
}

provide("reload", reload);
provide("signout", signOut);


</script>
@github-actions github-actions bot added the pending-triage Issue is pending triage label Jan 18, 2024
@lee56560 lee56560 changed the title When I sign up MFA qr code always show ''Loading...'' When I sign up account MFA qr code always show ''Loading...'' Jan 18, 2024
@calebpollman
Copy link
Member

@lee56560 Thanks for raising this issue. Was able to reproduce and looking in to a fix

@calebpollman calebpollman added bug Something isn't working Authenticator An issue or a feature-request for an Authenticator UI Component and removed pending-triage Issue is pending triage labels Jan 18, 2024
@calebpollman calebpollman self-assigned this Jan 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Authenticator An issue or a feature-request for an Authenticator UI Component bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants