mirror of
https://github.com/LukeHagar/website.git
synced 2025-12-11 04:22:19 +00:00
Search replace createEmailSession to createEmailPasswordSession
This commit is contained in:
@@ -29,7 +29,7 @@ export function UserProvider(props) {
|
||||
const [user, setUser] = useState(null);
|
||||
|
||||
async function login(email, password) {
|
||||
const loggedIn = await account.createEmailSession(email, password);
|
||||
const loggedIn = await account.createEmailPasswordSession(email, password);
|
||||
setUser(loggedIn);
|
||||
toast('Welcome back. You are logged in');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user