-
Notifications
You must be signed in to change notification settings - Fork 52
Category: Authorization
Andy Mac edited this page Apr 28, 2018
·
1 revision
Test a token
airbnb.testAuth('faketoken3sDdfvtF9if5398j0v5nui')
// returns bool
Request a new token
airbnb.newAccessToken({username:'[email protected]', password:'hunter2'})
// returns {token: 'faketoken3sDdfvtF9if5398j0v5nui'} or {error: {error obj}}
Request a new token (v2 endpoint). Similar to the above function but returns a user info summary with much more information.
airbnb.login({username:'[email protected]', password:'hunter2'})
// returns a user info object (includes token) or {error: {error obj}}
TODO: support other login methods