Skip to content

[Bug]: Login succeeds but logged-in state does not persist. #2877

Description

@quantizoor

Bug Description

I successfully manage to login as per the log from the cli but when checking my logged-in state with teams status I get that I'm not logged in.

user@ubuntu-8gb-fsn1-1:~$ teams login --device-code
To sign in, use a web browser to open the page https://login.microsoft.com/device and enter the code XXXXXXXX to authenticate.
Logged in as xxx@xxx.com
✔ Sideloading: enabled

Azure CLI: not installed
user@ubuntu-8gb-fsn1-1:~$ teams status
⚠ Not logged in
  Run teams login to authenticate.

Steps to Reproduce

  1. npm install -g @microsoft/teams.cli@preview
  2. teams login --device-code
  3. teams status

Expected Behavior

I expect teams status to say I'm logged in.

Actual Behavior

teams status says I'm not logged in.

SDK Version

3.0.0

Languages Affected

All

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions