You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
361 B
16 lines
361 B
1 day ago
|
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(600);
|
||
|
return useResponseSuccess(null);
|
||
|
});
|