Files
supabase/examples/nextjs-with-supabase-auth/pages/api/auth.js
T
Thor 雷神 Schaeffandmildtomato af99c593bc feat: Add Supabase Auth components, update password, and SSR Cookie example. (#512)
* feat(examnples/nextjs-with-supabase-auth): Add Supabase  UI Auth components.

* feat(examnples/nextjs-with-supabase-auth): Add SSR Cookie example.

* Add the Supabase Vercel deploy integration.

* chore: add basic styling and layout of Auth component.

• used @supabase/ui to help layout text and style around the Auth component

* fix nextjs link

* style the SSR example

* remove unused imports

* chore: update dependencies

Co-authored-by: mildtomato <jon.summers.muir@googlemail.com>
2021-01-15 14:54:46 +08:00

9 lines
227 B
JavaScript

/**
* NOTE: this file is only needed if you're doing SSR (getServerSideProps)!
*/
import { supabase } from '../../utils/initSupabase'
export default function handler(req, res) {
supabase.auth.api.setAuthCookie(req, res)
}