Incorporated learning from dokuwiki-authbrave
    - API endpoint should be configurable
    - Catch API exceptions
    - ...