Property 'signIn' does not exist on type 'SupabaseAuthClient'.

I am getting the following error Property 'signIn' does not exist on type 'SupabaseAuthClient'. for this code:
export async function signInWithGoogle() {
  const { user, session, error } = await supabase.auth.signIn({
    provider: "google",
  });
}
Was this page helpful?