mirror of
https://github.com/LukeHagar/website.git
synced 2025-12-10 12:57:49 +00:00
Updte auth docs
This commit is contained in:
@@ -39,7 +39,7 @@ export const useUserSession = () => {
|
||||
};
|
||||
|
||||
const login = async (email: string, password: string): Promise<void> => {
|
||||
const authUser = await account.createEmailSession(email, password); // Open user session in Appwrite
|
||||
const authUser = await account.createEmailPasswordSession(email, password); // Open user session in Appwrite
|
||||
current.value = authUser; // Pass user data to current ref
|
||||
navigateTo("/");
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user