从
getCurrentUser
aws-amplify/auth
我也尝试过
fetchAuthSession
您正在寻找
fetchUserAttributes
这里是将 v5 迁移到 v6 的文档讨论了此功能。