whatk233 / ddg-email-panel

DDG Email Panel is the open source unofficial DuckDuckGo Email Protection panel.
https://ddgep.vercel.app
MIT License
215 stars 30 forks source link

Error: 401 unauthorized when attempting to login #10

Closed burritosoftware closed 1 year ago

burritosoftware commented 1 year ago

image image

whatk233 commented 1 year ago

I wasn't able to reproduce the issue in our hosted site, is there an error log in the terminal?

burritosoftware commented 1 year ago

No error log. This seems to be because it is asking for a captcha on the main website (which I don't think is implemented here)

burritosoftware commented 1 year ago

Could there be a possibility to allow for using an API key (the Authorization: Bearer token) instead of a normal login flow, similar to how Bitwarden does here?

whatk233 commented 1 year ago

Could there be a possibility to allow for using an API key (the Authorization: Bearer token) instead of a normal login flow, similar to how Bitwarden does here?

It's a great idea.

In fact, the login flow is to obtain this token.

burritosoftware commented 1 year ago

It's a great idea.

In fact, the login flow is to obtain this token.

Yeah, I think it would be best to allow for setting the API key, alongside instructions to get it, or maybe a small userscript that will get it from the website. This way if the login flow changes, this should still work.

whatk233 commented 1 year ago

👌

burritosoftware commented 1 year ago

This works great, thank you!