mirror of
https://github.com/samuelthomas2774/nxapi.git
synced 2026-03-21 18:04:10 -05:00
Fix unable to fetch web service tokens in app
This commit is contained in:
parent
116bae844a
commit
d3e3ecd280
|
|
@ -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<TokenResponse> {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user