Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Token is not generating #42

Open
goppi1 opened this issue Dec 26, 2019 · 4 comments
Open

Token is not generating #42

goppi1 opened this issue Dec 26, 2019 · 4 comments

Comments

@goppi1
Copy link

goppi1 commented Dec 26, 2019

Hi,

I am trying to get token for airbnb and it returning null in response. Here is the code I am using
airbnb.login({ username: 'xxxxx', password: 'xxxxx }).then(function(data) { console.log('data: ', data); })

It returning null in console.

airbnb.newAccessToken({ username: 'xxxxxx', password: 'xxxxxx' }).then(function(data) { console.log('data: ', data); })

Above code returning error:-
data: { error: { error_code: 420, error: 'unknown_error', error_message: 'Unable to perform action. Please try again through the website or contact support if you need immediate assistance.' } }

Please help me and let me know where I am doing wrong.

@wazcov
Copy link

wazcov commented Jan 6, 2020

I'm also getting this with a new airbnb account

@igorzelaya
Copy link

Same here. Maybe its because my user is linked with my gmail account? Its yours also linked?

@bobmarley29
Copy link

i've started using this lib https://github.com/drawrowfly/airbnb-private-api . its does not have many endpoint support as this one but it works great at least for the token part

@itbankas
Copy link

itbankas commented Mar 4, 2020

Yes there is another way to get token via v2/authentications a bit different json post
old one /logins (often goes down)
body: {
authenticationParams: {
...(type === 'email'
? {
email: {
email: this.email,
password: this.password,
},
}
: {
phone: {
deliveryMethod: 'TEXT',
isCombinedFlow: false,
isGlobal: true,
otp: code,
phoneNumber: this.phone,
},
}),
},
metadata: {
sxsMode: 'OFF',
},
},

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants