@@ -26,7 +26,9 @@ async function validateToken(token, region, projectId) {
2626 console . log ( "-" . repeat ( 60 ) ) ;
2727
2828 // Test 1: Get tasks
29- console . log ( `\n1. GET /api/projects/${ projectId } /tasks/?limit=500&created_by=1` ) ;
29+ console . log (
30+ `\n1. GET /api/projects/${ projectId } /tasks/?limit=500&created_by=1` ,
31+ ) ;
3032 try {
3133 const response = await fetch (
3234 `${ cloudUrl } /api/projects/${ projectId } /tasks/?limit=500&created_by=1` ,
@@ -35,7 +37,7 @@ async function validateToken(token, region, projectId) {
3537 Authorization : `Bearer ${ token } ` ,
3638 "Content-Type" : "application/json" ,
3739 } ,
38- }
40+ } ,
3941 ) ;
4042
4143 if ( ! response . ok ) {
@@ -60,7 +62,7 @@ async function validateToken(token, region, projectId) {
6062 Authorization : `Bearer ${ token } ` ,
6163 "Content-Type" : "application/json" ,
6264 } ,
63- }
65+ } ,
6466 ) ;
6567
6668 if ( ! response . ok ) {
@@ -75,14 +77,16 @@ async function validateToken(token, region, projectId) {
7577 console . log ( ` ERROR: ${ error . message } ` ) ;
7678 }
7779
78- console . log ( "\n" + " -". repeat ( 60 ) ) ;
80+ console . log ( `\n ${ " -". repeat ( 60 ) } ` ) ;
7981}
8082
8183// Main
8284const args = process . argv . slice ( 2 ) ;
8385
8486if ( args . length < 2 ) {
85- console . log ( "Usage: node scripts/test-access-token.js <access_token> <project_id> [region]" ) ;
87+ console . log (
88+ "Usage: node scripts/test-access-token.js <access_token> <project_id> [region]" ,
89+ ) ;
8690 console . log ( "" ) ;
8791 console . log ( "Arguments:" ) ;
8892 console . log ( " access_token Your OAuth access token" ) ;
0 commit comments