🔧 Update tournament listing logic with additional scope types and refined authentication handling
This commit is contained in:
@@ -511,6 +511,9 @@ async function testListTournaments(resetPagination = true) {
|
|||||||
page: currentPage.value,
|
page: currentPage.value,
|
||||||
perPage: 100,
|
perPage: 100,
|
||||||
scope: tournamentScope.value,
|
scope: tournamentScope.value,
|
||||||
|
scopeRaw: tournamentScope.value,
|
||||||
|
ScopeType_USER: ScopeType.USER,
|
||||||
|
ScopeType_APPLICATION: ScopeType.APPLICATION,
|
||||||
states: [
|
states: [
|
||||||
'pending',
|
'pending',
|
||||||
'checking_in',
|
'checking_in',
|
||||||
@@ -523,8 +526,13 @@ async function testListTournaments(resetPagination = true) {
|
|||||||
'complete'
|
'complete'
|
||||||
],
|
],
|
||||||
resultsCount: result.length,
|
resultsCount: result.length,
|
||||||
isAuthenticated: isAuthenticated.value,
|
isOAuthAuthenticated: isAuthenticated.value,
|
||||||
authType: isAuthenticated.value ? 'OAuth' : 'API Key',
|
isClientCredsAuthenticated: isClientCredsAuthenticated.value,
|
||||||
|
authType: isClientCredsAuthenticated.value
|
||||||
|
? 'Client Credentials'
|
||||||
|
: isAuthenticated.value
|
||||||
|
? 'OAuth'
|
||||||
|
: 'API Key',
|
||||||
results: result
|
results: result
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user