[ADN] Forgot to fix login

This commit is contained in:
AnimeDL 2024-07-28 09:15:29 -07:00
parent 423ad7b2c9
commit 35777ecb58

2
adn.ts
View file

@ -204,8 +204,6 @@ export default class AnimationDigitalNetwork implements ServiceClass {
return { isOk: false, reason: new Error('Authentication failed') };
}
this.token = await authReq.res.json();
const cookies = this.parseCookies(authReq.res.headers.get('Set-Cookie'));
this.token.refreshToken = cookies.adnrt;
yamlCfg.saveADNToken(this.token);
console.info('Authentication Success');
return { isOk: true, value: undefined };