Усилить «Нет текущего пользователя» после регистрации - PullRequest
0 голосов
/ 24 сентября 2019

Я использую реагирование и пытаюсь зарегистрировать пользователя, но получаю следующее сообщение об ошибке:

[DEBUG] 22:47.149 AuthClass - Failed to get user from user pool
[ERROR] 22:47.154 AuthClass - Failed to get the signed in user No current user
[DEBUG] 22:47.161 AuthPiece - No current user

Но я также получаю свой объект User обратно.

{
  codeDeliveryDetails: {...someValues},
  user: {...userValues},
  userConfirmed: false,
  userSub: 'someHashId'
}

Я нашел вкакой-то предыдущий пост, который я должен отключить cookieStorage, но я не использую cookieStorage

aws-exports.js

    "aws_project_region": "eu-central-1",
    "aws_cognito_identity_pool_id": "eu-central-1:someHash",
    "aws_cognito_region": "eu-central-1",
    "aws_user_pools_id": "eu-central-1_someHash",
    "aws_user_pools_web_client_id": "someKey",
    "oauth": {
        "domain": "projectname-dev.auth.eu-central-1.amazoncognito.com",
        "scope": [
            "phone",
            "email",
            "openid",
            "profile",
            "aws.cognito.signin.user.admin"
        ],
        "redirectSignIn": "http://localhost:3000/",
        "redirectSignOut": "http://localhost:3000/",
        "responseType": "code"
    },
    "federationTarget": "COGNITO_USER_POOLS",
    "aws_appsync_graphqlEndpoint": "https://anotherHash.appsync-api.eu-central-1.amazonaws.com/graphql",
    "aws_appsync_region": "eu-central-1",
    "aws_appsync_authenticationType": "AMAZON_COGNITO_USER_POOLS"

...