Skip to content

Instantly share code, notes, and snippets.



Created Mar 6, 2020
What would you like to do?
import fetch from "node-fetch"
// expected to return => {token: "", filledAccountData: {authMethod: "EMAIL_AND_PASSWORD", userId: ""}}
export async function login(email, password, deviceId) {
return await fetch("", {
body: JSON.stringify({
authenticationParams: { email: { email, password } },
headers: {
"Content-Type": "application/json; charset=UTF-8",
"X-Airbnb-Device-Id": deviceId,
method: "POST",
}).then(res => res.json())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.