Particle API JS Multifactor Auth

Trying to use the Particle Javascript API referenced in the official SDK here:

particle.login({username: '', password: 'pass'}).then(
    console.log('API call completed on promise resolve: ', data.body.access_token);
  function(err) {
    console.log('API call completed on promise fail: ', err);

But since particle has migrated to multifactor authentication I’m getting a 403 return from the login methods:

HTTP error 403 from /OAuth/token - Multi-factor authentication required

Is there a better way to login/access my device data using the Javascript API?

you’ll need to provide the one-time password (OTP) via


1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.