为什么放大会给我这个错误,尽管它确实进行了身份验证?

Why amplify is giving me this error despite it does doing the auth?

我正在用 vsCode 中的 react Native、aws-amplify 编写一个 Auth,我有下一个代码:


    import Amplify, { Auth } from 'aws-amplify';
    import awsconfig from './app/aws-exports';
    Amplify.configure(awsconfig);

     signUp: ()=>{
              Auth.signUp({
                username: 'jul***p***@**il.com', 
                password: '******',
                email:'jul***p***@**il.com',
                phone: '1111111111'
              }).then((res,error) => {
                console.log('Signed up!', res);
              }).cath(error => {
                console.log('error: ',error);
              })
            }

显然,我在请求中为用户提供了正确的数据,我向用户授予了正确的权限并且在 AWS 上的部署成功,但我遇到了下一个错误:

TypeError: _ aws Amplify.Auth.confirmSignUp(...).then(...).catch 不是函数

如果有人有任何想法,我会感谢你。

很抱歉,这有点愚蠢...只是我不得不将单词 'cath' 更改为 'catch'。这是错误。