Skip to content

Commit

Permalink
Login after signup
Browse files Browse the repository at this point in the history
  • Loading branch information
aleda145 committed Aug 3, 2022
1 parent 40fbbf4 commit 05d2cf0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion frontend/src/auth/pocketbase.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@ export default function Auth({ client, setIsLoggedIn }) {
});

console.log(user);
// setIsLoggedIn(client.AuthStore.isValid);
console.log(client.AuthStore.isValid);
const userData = await client.Users.authViaEmail(username, password);
console.log(userData);

setIsLoggedIn(client.AuthStore.isValid);
};
return (
<div className="login-wrapper">
Expand Down

0 comments on commit 05d2cf0

Please sign in to comment.