@@ -856,7 +856,7 @@ export class AppManagementClient implements DeveloperPlatformClient {
856856 token : await this . businessPlatformToken ( ) ,
857857 organizationId : String ( numberFromGid ( orgId ) ) ,
858858 variables,
859- unauthorizedHandler : this . createUnauthorizedHandler ( 'appManagement' ) ,
859+ unauthorizedHandler : this . createUnauthorizedHandler ( ) ,
860860 } )
861861 const provisionResult = fullResult . organizationUserProvisionShopAccess
862862 if ( ! provisionResult . success ) {
@@ -1057,7 +1057,7 @@ export class AppManagementClient implements DeveloperPlatformClient {
10571057 token : await this . businessPlatformToken ( ) ,
10581058 organizationId,
10591059 variables,
1060- unauthorizedHandler : this . createUnauthorizedHandler ( 'appManagement' ) ,
1060+ unauthorizedHandler : this . createUnauthorizedHandler ( ) ,
10611061 } )
10621062 const result : { [ flag : ( typeof allBetaFlags ) [ number ] ] : boolean } = { }
10631063 allBetaFlags . forEach ( ( flag ) => {
@@ -1072,7 +1072,7 @@ export class AppManagementClient implements DeveloperPlatformClient {
10721072 return appManagementRequestDoc ( {
10731073 ...options ,
10741074 token : await this . token ( ) ,
1075- unauthorizedHandler : this . createUnauthorizedHandler ( 'appManagement' ) ,
1075+ unauthorizedHandler : this . createUnauthorizedHandler ( ) ,
10761076 } )
10771077 }
10781078
@@ -1082,7 +1082,7 @@ export class AppManagementClient implements DeveloperPlatformClient {
10821082 return appDevRequestDoc ( {
10831083 ...options ,
10841084 token : await this . token ( ) ,
1085- unauthorizedHandler : this . createUnauthorizedHandler ( 'appManagement' ) ,
1085+ unauthorizedHandler : this . createUnauthorizedHandler ( ) ,
10861086 } )
10871087 }
10881088
@@ -1112,7 +1112,7 @@ export class AppManagementClient implements DeveloperPlatformClient {
11121112 return functionsRequestDoc < TResult , TVariables > ( {
11131113 ...options ,
11141114 token : await this . token ( ) ,
1115- unauthorizedHandler : this . createUnauthorizedHandler ( 'appManagement' ) ,
1115+ unauthorizedHandler : this . createUnauthorizedHandler ( ) ,
11161116 } )
11171117 }
11181118
@@ -1122,13 +1122,11 @@ export class AppManagementClient implements DeveloperPlatformClient {
11221122 return webhooksRequestDoc < TResult , TVariables > ( {
11231123 ...options ,
11241124 token : await this . token ( ) ,
1125- unauthorizedHandler : this . createUnauthorizedHandler ( 'appManagement' ) ,
1125+ unauthorizedHandler : this . createUnauthorizedHandler ( ) ,
11261126 } )
11271127 }
11281128
1129- private createUnauthorizedHandler (
1130- tokenType : 'appManagement' | 'businessPlatform' = 'appManagement' ,
1131- ) : UnauthorizedHandler {
1129+ private createUnauthorizedHandler ( tokenType : 'default' | 'businessPlatform' = 'default' ) : UnauthorizedHandler {
11321130 return createUnauthorizedHandler ( this , tokenType )
11331131 }
11341132}
0 commit comments