DEV Community

Discussion on: Authentication with Aws Cognito, Passport and NestJs (Part II)

Collapse
 
ajankowy25 profile image
Agnieszka Jankowy • Edited

That's a great guide to understanding how Cognito works! It helps me a lot :) I just wanna point out one thing: You don't need to use await within return: such as return await... It uses slightly more memory to work. Actually, the client which uses our controller will await the result, so there is no need to use _ return await _ inside the controller :)

Collapse
 
fstbraz profile image
Fausto Braz

Yeah, you're right, corrected and updated, thanks