mirror of
https://github.com/fergalmoran/supanextail.git
synced 2025-12-22 09:17:54 +00:00
16 lines
428 B
TypeScript
16 lines
428 B
TypeScript
/**
|
|
* 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 function handler(
|
|
request: NextApiRequest,
|
|
response: NextApiResponse
|
|
): void {
|
|
supabase.auth.api.setAuthCookie(request, response);
|
|
}
|