Get the user id of current active user in supabase. Supabase auth logged user’s id get. Supabase next js code to get current logged in user’s id.
import { useUser } from "@supabase/auth-helpers-react";
export default function DashboardHome() {
const user = useUser()
console.log("Active User id " : user?.id); //this will give the user id in the console
}