in src/Amazon.Extensions.CognitoAuthentication/CognitoUserAuthentication.cs [672:679]
private void UpdateSessionIfAuthenticationComplete(ChallengeNameType challengeName, AuthenticationResultType authResult)
{
if (string.IsNullOrEmpty(challengeName))
{
CognitoUserSession cognitoUserSession = GetCognitoUserSession(authResult);
this.SessionTokens = cognitoUserSession;
}
}