mirror of
https://github.com/samuelthomas2774/nxapi.git
synced 2026-10-24 02:25:25 -05:00
Use /v3/Account/GetToken to renew the app token
This commit is contained in:
@@ -432,9 +432,10 @@ export class ZncNotifications extends Loop {
|
||||
// Token expired
|
||||
debug('Renewing token');
|
||||
|
||||
const data = await this.nso.renewToken(this.token);
|
||||
const data = await this.nso.renewToken(this.token, this.data.user);
|
||||
|
||||
const existingToken: SavedToken = {
|
||||
user: this.data.user,
|
||||
...data,
|
||||
expires_at: Date.now() + (data.credential.expiresIn * 1000),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user