From d3e3ecd28011fd46589accfa3c0d52a27e3802fa Mon Sep 17 00:00:00 2001 From: Samuel Elliott Date: Fri, 1 Aug 2025 22:41:31 +0100 Subject: [PATCH] Fix unable to fetch web service tokens in app --- src/api/f.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/api/f.ts b/src/api/f.ts index b680efe..751f9f9 100644 --- a/src/api/f.ts +++ b/src/api/f.ts @@ -627,10 +627,10 @@ export class NxapiZncaAuth { } get has_nsa_assertion_scope() { - return this.token?.result.scope ? !!this.token.result.scope.match(/\bca:ns\b/) : + return this.token?.result.scope ? !!this.token.result.scope.match(/\bca:na\b/) : this.client_assertion_provider && !this.client_credentials ? - !!this.client_assertion_provider.scope.match(/\bca:ns\b/) : - this.client_credentials ? !!this.request_scope.match(/\bca:ns\b/) : false; + !!this.client_assertion_provider.scope.match(/\bca:na\b/) : + this.client_credentials ? !!this.request_scope.match(/\bca:na\b/) : false; } async getAccessToken(): Promise {