使用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令牌。