Complete the code to sign up a user with email and password.
const { data, error } = await supabase.auth.[1]({ email, password });The signUp method creates a new user with email and password.
Complete the code to sign in a user with email and password.
const { data, error } = await supabase.auth.[1]({ email, password });The signInWithPassword method signs in an existing user using email and password.
Fix the error in the code to sign out the current user.
const { error } = await supabase.auth.[1]();The signOut method logs out the current user.
Fill both blanks to reset a user's password via email.
const { data, error } = await supabase.auth.[1]({ email: [2] });The resetPasswordForEmail method sends a password reset email to the user's email address.
Fill all three blanks to update the user's password after sign in.
const { data, error } = await supabase.auth.[1]({ password: [2] });
if (!error) {
console.log('Password updated for user:', [3]);
}The updateUser method updates user details like password. The new password is passed as password. The user's email is accessed from data.user.email.
