2

在使用 aws 联合登录后,我获得了 Facebook 的凭据,但在成功登录后,我没有收到任何响应或 jwt 令牌。

我已尝试使用 AWS Cognito 身份验证并尝试使用 AWSCognitoCredentials 提供程序,但没有找到任何解决方案

AWSCognitoCredentialsProvider(regionType: AWSRegionType.USEast1, identityPoolId: "us-east-1:xxxxxxxxx", identityProviderManager: CredentialProviderClass).credentials().continueWith { (task) -> Any? in

            DispatchQueue.main.async {

                if (task.error != nil) {
                    print("Error : \(task.error?.localizedDescription ?? "")")
                } else {
                    // the task result will contain the identity id
                    if let credentials = task.result {
                        print(credentials)
                    }
                }
            }

            return nil
        }

登录到 Facebook 并成功验证后,我期待 JWT 令牌。

4

0 回答 0