mirror of
https://github.com/misenhower/splatoon3.ink.git
synced 2026-03-21 17:54:13 -05:00
Use token auth for Threads
This commit is contained in:
parent
787e73338b
commit
cd67ee5aee
|
|
@ -12,14 +12,19 @@ export default class ThreadsClient extends Client {
|
|||
super();
|
||||
|
||||
this.#api = new threads.ThreadsAPI({
|
||||
username: process.env.THREADS_USERNAME,
|
||||
password: process.env.THREADS_PASSWORD,
|
||||
// username: process.env.THREADS_USERNAME,
|
||||
// password: process.env.THREADS_PASSWORD,
|
||||
token: process.env.THREADS_TOKEN,
|
||||
deviceID: process.env.THREADS_DEVICE_ID,
|
||||
});
|
||||
}
|
||||
|
||||
async canSend() {
|
||||
return process.env.THREADS_USERNAME
|
||||
&& process.env.THREADS_PASSWORD;
|
||||
// return process.env.THREADS_USERNAME
|
||||
// && process.env.THREADS_PASSWORD;
|
||||
|
||||
return process.env.THREADS_TOKEN
|
||||
&& process.env.THREADS_DEVICE_ID;
|
||||
}
|
||||
|
||||
async send(status, generator) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user