When I use the below code:
$result = $this->client->adminInitiateAuth([
'AuthFlow' => 'ADMIN_NO_SRP_AUTH',
'ClientId' => $this->client_id,
'UserPoolId' => $this->userpool_id,
'AuthParameters' => [
'USERNAME' => $username,
'PASSWORD' => $password,
],
]);
I am getting a response with session
and challengeName :NEW_PASSWORD_REQUIRED
. From this how to generate the AccessToken
in AWS-cognito?