Continue typescript integration

This commit is contained in:
Michael
2021-08-24 11:57:13 +02:00
parent 5a24246d09
commit a7c614bcc9
22 changed files with 278 additions and 85 deletions

12
pages/api/auth.ts Normal file
View File

@@ -0,0 +1,12 @@
/**
* NOTE: this file is only needed if you're doing SSR (getServerSideProps)!
* With SupaNexTail, we use SSR with the Dashboard page (pages/dashboard.js)
*/
import type { NextApiRequest, NextApiResponse } from 'next';
import { supabase } from 'utils/supabaseClient';
export default async function handler(req: NextApiRequest, res: NextApiResponse): Promise<void> {
supabase.auth.api.setAuthCookie(req, res);
}