Sls login : how to login without browser?

I tried what you suggest, and what alexdebrie suggests in this post : Log into Serverless Platform on a headless system
But I still get the message “Serverless: Logging you in via your default browser…”

What I tried :

  1. create an app on my serverless account : “mysuperapp” ;
  2. create a personal access key : xxxxxxxxxxxxxxx ;
  3. add the following to my serverless.yml :
tenant: mytenantname
app: mysuperapp
[...]
environment:
  SERVERLESS_ACCESS_KEY: xxxxxxxxxxxxxxx 
  1. then I run ‘sls login’ at the same level of my serverless.yml, and get the message “Serverless: Logging you in via your default browser…”.

Is there something wrong ?