mirror of
https://github.com/supabase/supabase.git
synced 2026-10-17 07:09:07 +03:00
fix: (Setting up Server-Side Auth for Next.js) update examples (#31139)
chore: update examples
This commit is contained in:
1 parent
429c3bb168
commit
52254410cd
1 file changed
+3
-1
@@ -122,7 +122,7 @@ export function createClient() {
|
||||
```
|
||||
|
||||
```ts utils/supabase/server.ts
|
||||
import { createServerClient, type CookieOptions } from '@supabase/ssr'
|
||||
import { createServerClient } from '@supabase/ssr'
|
||||
import { cookies } from 'next/headers'
|
||||
|
||||
export async function createClient() {
|
||||
@@ -380,6 +380,8 @@ export async function signup(formData: FormData) {
|
||||
```
|
||||
|
||||
```ts app/error/page.tsx
|
||||
'use client'
|
||||
|
||||
export default function ErrorPage() {
|
||||
return <p>Sorry, something went wrong</p>
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user