Skip to content

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

Docs: remove unused `session` variable

Liau Jian Jie4e36eb80f840
diff --git a/apps/docs/pages/guides/auth/auth-helpers/nextjs-server-components.mdx b/apps/docs/pages/guides/auth/auth-helpers/nextjs-server-components.mdx
index a31afc3d055..a2bae56dc30 100644
--- a/apps/docs/pages/guides/auth/auth-helpers/nextjs-server-components.mdx
+++ b/apps/docs/pages/guides/auth/auth-helpers/nextjs-server-components.mdx
@@ -506,7 +506,7 @@ import { useSupabase } from './supabase-provider'
// Supabase auth needs to be triggered client-side
export default function Login() {
- const { supabase, session } = useSupabase()
+ const { supabase } = useSupabase()
const handleEmailLogin = async () => {
await supabase.auth.signInWithPassword({
@@ -546,7 +546,7 @@ import { useSupabase } from './supabase-provider'
// Supabase auth needs to be triggered client-side
export default function Login() {
- const { supabase, session } = useSupabase()
+ const { supabase } = useSupabase()
const handleEmailLogin = async () => {
await supabase.auth.signInWithPassword({