Some checks failed
Deploy / deploy (push) Has been cancelled
Full-stack web application for Telegram management - Frontend: Vue 3 + Vben Admin - Backend: NestJS - Features: User management, group broadcast, statistics 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
27 lines
960 B
JavaScript
27 lines
960 B
JavaScript
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(); |