Skip to content

Login fails with "OAuth1 token is required for OAuth2 refresh" on MFA accounts after fresh login #312

@gunmetal79

Description

@gunmetal79

Environment:

  • Python 3.12.0 (macOS)
  • garminconnect 0.2.36
  • garth 0.5.19

Steps:

  1. Delete ~/.garminconnect
  2. Run script with fresh login:
    from garminconnect import Garmin
    from getpass import getpass
    client = Garmin("email", getpass("Password: "))
    client.login()
  3. Password accepted, MFA code accepted, but login fails on profile fetch with: AssertionError: OAuth1 token is required for OAuth2 refresh

example.py works once, but any subsequent fresh login (or script that forces new login) fails the same way.
This makes daily automated sync impossible with MFA-enabled accounts.

Is this a known limitation or is there a workaround / planned fix?
Thanks!

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