umami/pages/api/auth/verify.js
2022-11-08 22:58:52 -08:00

9 lines
173 B
JavaScript

import { useAuth } from 'lib/middleware';
import { ok } from 'next-basics';
export default async (req, res) => {
await useAuth(req, res);
return ok(res, req.auth);
};