const axios = require('axios'); async function testAuth() { try { // Try without auth console.log('Testing without auth...'); const response1 = await axios.post('http://localhost:3000/accountCheck/start'); console.log('Success without auth:', response1.data); } catch (error) { console.log('Failed without auth:', error.response?.status, error.response?.data?.message); // Try with dummy token console.log('\nTesting with dummy token...'); try { const response2 = await axios.post('http://localhost:3000/accountCheck/start', {}, { headers: { 'Authorization': 'Bearer dummy-token' } }); console.log('Success with token:', response2.data); } catch (error2) { console.log('Failed with token:', error2.response?.status, error2.response?.data); } } } testAuth();