duolingo-client

The object returned by require('duolingo-client').
Source:

Classes

DuolingoClient

Methods

(async, static) login(username, password) → {Promise.<LoginResult>}

Gets a JWT secret for calling APIs that require authentication. This also returns their user id which is needed for some API calls.
Parameters:
Name Type Description
username string The username to login as.
password string The user's password.
Source:
Returns:
A JWT for the user and their user id.
Type
Promise.<LoginResult>