Using Cognito to add authentication to a serverless app

Link to chapter — https://serverless-stack.com/chapters/using-cognito-to-add-authentication-to-a-serverless-app.html

What is the recommemended way to create passwordless login with cognito using sst?