petermcd / monzo-api

Python package to interact with the API provided by Monzo bank
MIT License
27 stars 5 forks source link

[BUG] Logout Issue #45

Closed petermcd closed 2 years ago

petermcd commented 2 years ago

Describe the bug Logout results in a 404 error

To Reproduce

from monzo.handlers.filesystem import FileSystem
from monzo.authentication import Authentication

handler = FileSystem(file='monzo.json')

credentials = handler.fetch()

auth = Authentication(
    client_id=credentials['client_id'],
    client_secret=credentials['client_secret'],
    redirect_url='',
    access_token=credentials['access_token'],
    access_token_expiry=credentials['expiry'],
    refresh_token=credentials['refresh_token'],
)

auth.register_callback_handler(credentials)
auth.logout()

Expected behavior For logout to succeed

Environment (please complete the following information):

Additional context N/A

petermcd commented 2 years ago

Closing issue as now resolved.