electricitymaps / bloom-contrib

Making carbon footprint data available to everyone.

Home Page:https://www.bloomclimate.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support for phone authentication?

baywet opened this issue · comments

Hi,
Great application. I've been working on integrating Airbnb.
Their API is not publicly documented and the wrappers around the API are a bit hacky.
However I managed to make good progress on my side with a local branch using this library https://www.npmjs.com/package/airbnb-private-api#authorization-by-phone
I'm stuck on authentication:

  • using email + password: airbnb challenges for captcha before letting authentication go through. Which I have nowhere to display.
  • using phone (suggested method by library developer): I'd need to display an input field to ask for the phone number, get called back once the phone number is submitted, display an input field for the user to input the code, get called back once the code is submitted (and maybe also get a button there with a callback to resend the text message).

The phone authentication method is not supposed to challenge for captcha.

So here is my suggestion: add a phoneAuthManager like you have the OAuth managers, that manager would accept the following callbacks as constructor parameters:

  • sendTextMessage(phoneNumber: string): Promise
  • authenticate(textCode: string): Promise<{}> (state)

Hi @baywet
Thank you for the issue!
Unfortunately we don't support those kind of authentication and we don't plan to have them in the future.
The reason is that we're circumventing an auth system, and Airbnb will probably not be happy about this.
I'm closing this for now, but maybe we should contact Airbnb in order to see if they have a more public OAuth API that we could use?