• Authenticate to Verdocs via user/password authentication

    import {Auth} from '@verdocs/js-sdk/Auth';
    import {Transport} from '@verdocs/js-sdk/HTTP';

    const {accessToken} = await Auth.authenticateUser({ username: 'test@test.com', password: 'PASSWORD' });
    Transport.setAuthToken(accessToken);

    Parameters

    Returns Promise<IAuthenticateResponse>