Skip to content

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

docs: add information about default cookie name used (#21298)

Kang Mingdac1c3e6da80
diff --git a/apps/docs/content/guides/auth/server-side/nextjs.mdx b/apps/docs/content/guides/auth/server-side/nextjs.mdx
index 99b0cd126e0..f26d4afbebb 100644
--- a/apps/docs/content/guides/auth/server-side/nextjs.mdx
+++ b/apps/docs/content/guides/auth/server-side/nextjs.mdx
@@ -83,6 +83,8 @@ Create a `utils/supabase` folder with a file for each type of client. Then copy
The `set` and `remove` methods for the server client need error handlers, because Next.js throws an error if cookies are set from Server Components. You can safely ignore this error because you'll set up middleware in the next step to write refreshed cookies to storage.
+ The cookie is named `sb-<project_ref>-auth-token` by default.
+
</Accordion.Item>
</div>
@@ -626,6 +628,8 @@ Create a `utils/supabase` folder with a file for each type of client. Then copy
The cookies object lets the Supabase client know how to access the cookies, so it can read and write the user session. To make `@supabase/ssr` framework-agnostic, the cookies methods aren't hard-coded. But you only need to set them up once. You can then reuse your utility functions whenever you need a Supabase client.
+ The cookie is named `sb-<project_ref>-auth-token` by default.
+
</Accordion.Item>
</div>