Files
你的用户名 237c7802e5
Some checks failed
Deploy / deploy (push) Has been cancelled
Initial commit: Telegram Management System
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>
2025-11-04 15:37:50 +08:00

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();