Skip to content

πŸ›: Device code expired when authΒ #16

@JetSquirrel

Description

@JetSquirrel

Description

When I run the following command to authenticate via OAuth:

npx @floriscornel/teams-mcp@latest authenticate

I encountered the following error right after logging into my account:

❌ Authentication failed: device_code_expired: Device code is expired.

Screenshot

Observed Issues

  • OAuth authentication workflow fails with device_code_expired error.
  • CLIENT_ID appears to be hardcoded in the source file.
  • My timezone is UTC-8; not sure if this is contributing to the issue (possible time drift?).

Expected Behavior

  • OAuth authentication should succeed without device code expiration immediately after login.

Environment

  • Timezone: UTC-8
  • Command run: npx @floriscornel/teams-mcp@latest authenticate
  • Account type: Personal Microsoft account

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions