Initial commit: Telegram Management System
Some checks failed
Deploy / deploy (push) Has been cancelled
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>
This commit is contained in:
27
backend/test-auth.js
Normal file
27
backend/test-auth.js
Normal file
@@ -0,0 +1,27 @@
|
||||
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();
|
||||
Reference in New Issue
Block a user