如何管理使用AWS Amplify Authentication创建的用户

我正在尝试根据以下教程https://dev.to/dabit3/how-to-build-production-ready-vue-authentication-23mk使用Vue.js构建一个AWS Amplify身份验证页面。我正在配置profile.vue组件,以将与已认证用户关联的用户信息传递给模板。在本教程中,名为Auth.currentAuthenticatedUser的方法将返回一个user对象,其中包含有关已登录用户的元数据。通过在模板中将.username附加到name来访问此元数据。这是上述教程中使用Auth.currentAuthenticatedUser方法的该组件的示例:

<template>
  <h1>Welcome,{{user.username}}</h1>
</template>

<script>
import { Auth } from 'aws-amplify'

export default {
  name: 'Profile',data() {
    return {
      user: {}
    }
  },beforeCreate() {
    Auth.currentAuthenticatedUser()
      .then(user => {
        this.user = user
      })
      .catch(() => console.log('not signed in...'))
  }
}
</script>

我的问题是:创建用户后,哪个AWS服务实际上存储该用户数据?是否存在类似于Amplify或Cognito的仪表板,用于以集合的形式管理用户信息?

mattkk 回答:如何管理使用AWS Amplify Authentication创建的用户

由于您使用的是Amplify,aws-amplify npm软件包提供了auth class,我相信答案是您已经在使用Cognito。您应该已经可以在Cognito中查看您的用户。

本文链接:https://www.f2er.com/3056504.html

大家都在问