mirror of
https://github.com/supabase/supabase.git
synced 2026-10-06 18:05:11 +03:00
## Context Enforce `noUnusedLocals` and `noUnusedParameters` in tsconfig.json + fix all related issues
12 lines
395 B
TypeScript
12 lines
395 B
TypeScript
import { NextApiRequest, NextApiResponse } from 'next'
|
|
|
|
// Returns the current UTC time in ISO format. Used to check if the client and server time are skewed. Clock skew causes
|
|
// issues with JWT verification.
|
|
const handler = async (_req: NextApiRequest, res: NextApiResponse) => {
|
|
const utcTime = new Date().toISOString()
|
|
|
|
return res.status(200).json({ utcTime })
|
|
}
|
|
|
|
export default handler
|