Can't signin with Supabase auth

I am trying to integrate the Supabase auth with this example: Supabase Auth | RedwoodJS Docs

However, on the page, it will show this error message:

client.auth.signIn is not a function

Source code is below:

const SigninPage = () => {
  const { logIn } = useAuth()
  const [error, setError] = React.useState(null)

  const onSubmit = async (data) => {
    setError(null)
    try {
      const response = await logIn({
        email: data.email,
        password: data.password,
      })
      response?.error?.message
        ? setError(response.error.message)
        : navigate(routes.home())
    } catch (error) {
      setError(error.message)
    }
  }

  return (
    <>
      <h1>Sign In</h1>
      <Form onSubmit={onSubmit}>
        {error && <p>{error}</p>}
        <TextField name="email" placeholder="email" />
        <PasswordField name="password" placeholder="password" />
        <Submit>Sign In</Submit>
      </Form>
    </>
  )
}

Thank you for help!

try adding the authentication strategy you want to use via the new ‘authMethod’ prop as shown here: Redwood v5.0.0 Upgrade Guide and here: Supabase Authentication | RedwoodJS Docs