Can't login with setup

Following the tutorial on https://www.serverless.com/learn/tutorial/deploying-react-website-on-aws/, tried to deploy the created app through a template, however even when i log in through the browser as instructed, I keep getting this error which points to the loginData being undefined:

website serverless login

serverless :zap: framework
Logging you in via the Browser…

If your browser did not open automatically, copy & paste this url into your browser:
https://components.serverless.com?client=cli&transactionId=XN8rcoIyPpPOax8OKqMMx

TypeError: Cannot read property ‘id’ of undefined
at Object.module.exports [as login] (/usr/local/lib/node_modules/serverless/node_modules/@serverless/components/src/cli/commands/login.js:68:33)
at Object.module.exports (/usr/local/lib/node_modules/serverless/node_modules/@serverless/components/src/cli/index.js:99:7)

Serverless › Cannot read property ‘id’ of undefined

Any idea what I’m missing here?