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>
16 lines
362 B
TypeScript
16 lines
362 B
TypeScript
import { verifyAccessToken } from '~/utils/jwt-utils';
|
|
import {
|
|
sleep,
|
|
unAuthorizedResponse,
|
|
useResponseSuccess,
|
|
} from '~/utils/response';
|
|
|
|
export default eventHandler(async (event) => {
|
|
const userinfo = verifyAccessToken(event);
|
|
if (!userinfo) {
|
|
return unAuthorizedResponse(event);
|
|
}
|
|
await sleep(2000);
|
|
return useResponseSuccess(null);
|
|
});
|