Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

395 B
Raw Blame
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