You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am receiving an error regarding two-factor authentication.
Is there already a way to work around this error, or are there plans to implement two-factor authentication
Steps to reproduce the issue
``
from python_picnic_api2 import PicnicAPI
p = PicnicAPI("XXXX","YYYYYYY",'de');
p.get_deliveries()
{'error': {'code': 'TWO_FACTOR_AUTHENTICATION_REQUIRED', 'message': 'User must verify their second factor', 'details': {}}}
``
Activity
littleyoda commentedon Mar 1, 2026
The NPM-Implementition for picnic already contains function for 2FA:
https://github.com/MRVDH/picnic-api/blob/7dfbab91721b07651be8f4efa9e0c699f131ee58/src/index.ts#L105
littleyoda commentedon Mar 1, 2026
Please find attached a first implementation for two-factor authentication.
Unfortunately, currently only available as a diff in a text file.
diff.txt
codesalatdev commentedon Mar 1, 2026
Why did you close this issue? The integration tests started to fail today, so IMO this is still relevant?
littleyoda commentedon Mar 1, 2026
Closing it was a mistake. I havn't the rights to reopen the issue.
codesalatdev commentedon Mar 1, 2026
Ah I see, I will reopen and implement the function, thank you for the diff! :)
codesalatdev commentedon Mar 2, 2026
Thanks for the report! The 2FA flow is added in version v1.3.3 https://pypi.org/project/python-picnic-api2/1.3.3/
littleyoda commentedon Mar 2, 2026
Would you mind updating the readme file with a short information on how to use 2FA?
codesalatdev commentedon Mar 2, 2026
Updated: https://github.com/codesalatdev/python-picnic-api?tab=readme-ov-file#two-factor-authentication-2fa :)