junhoyeo / threads-api

Unofficial, Reverse-Engineered Node.js/TypeScript client for Meta's Threads. Web UI Included.
https://threads.junho.io
MIT License
1.58k stars 134 forks source link

suspicious login attempt #218

Closed dwhieb closed 11 months ago

dwhieb commented 11 months ago

I'm getting a suspicious login notice in the Threads app every time I try to log in using this API. Any tips for how I might avoid this? Thanks!

Aerglonus commented 11 months ago

The unidentified login notice is because the automatically generated deviceID so pass it but also include userID, token and if you have an android that you already logged in with added to the device option

  const threadsAPI = new ThreadsAPI({
    verbose: true,
    device: {
      manufacturer: 'Your device manufacturer,
      model: 'Your device model',
      os_version: Your device android version,
      os_release: 'Your device manufacturer OS version',
    },
}