mirror of
https://github.com/samuelthomas2774/nxapi.git
synced 2026-03-21 18:04:10 -05:00
Fix renewing nxapi-auth token
This commit is contained in:
parent
00ab5fc623
commit
080d110d1f
|
|
@ -393,7 +393,7 @@ export class ZncaApiNxapi extends ZncaApi implements RequestEncryptionProvider {
|
|||
if (response.status !== 200) {
|
||||
const err = await ErrorResponse.fromResponse<AndroidZncaFError>(response, '[znca-api] Non-200 status code');
|
||||
|
||||
if (this.auth && err.data?.error === 'invalid_token' && _attempt) {
|
||||
if (this.auth && err.data?.error === 'invalid_token' && !_attempt) {
|
||||
this.auth.token = null;
|
||||
|
||||
return this.genf(token, hash_method, user, encrypt_token_request, _attempt + 1);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user