mirror of
https://github.com/Pandipipas/scoreko-dev.git
synced 2026-06-06 03:32:06 +00:00
fix(challonge): request OAuth scopes needed for tournament reads
This commit is contained in:
@@ -506,7 +506,7 @@ const loadChallongeRecentTournaments = async () => {
|
||||
hasValidatedChallongeToken.value = false;
|
||||
const message = error instanceof Error ? error.message : 'Could not load tournaments.';
|
||||
challongeTournamentsError.value = message.includes('401')
|
||||
? 'Challonge rejected the token (401 Unauthorized). Verify OAuth callback/client credentials or paste a valid personal API token.'
|
||||
? 'Challonge rejected the token (401 Unauthorized). Re-connect OAuth so it grants scopes (me, tournaments:read, participants:read) or paste a valid personal API token.'
|
||||
: message;
|
||||
challongeRecentTournaments.value = [];
|
||||
} finally {
|
||||
|
||||
Reference in New Issue
Block a user