Skip to content

Commit 6856fad

Browse files
authored
3rd arg loginuser
1 parent 48726cb commit 6856fad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ yarn add react-netlify-identity
4141
- `isConfirmedUser: boolean`: if they have confirmed their email
4242
- `isLoggedIn: boolean`: if the user is logged in
4343
- `signupUser(email: string, password: string, data: Object)`
44-
- `loginUser(email: string, password: string)`
44+
- `loginUser(email: string, password: string, remember: Boolean)`
4545
- `logoutUser()`
4646
- `requestPasswordRecovery(email: string)`
4747
- `recoverAccount(token: string, remember?: boolean | undefined)`
@@ -95,7 +95,7 @@ function Login() {
9595
e.preventDefault();
9696
const email = e.target.email.value;
9797
const password = e.target.password.value;
98-
load(loginUser(email, password))
98+
load(loginUser(email, password, true))
9999
.then(user => {
100100
console.log('Success! Logged in', user);
101101
navigate('/dashboard');

0 commit comments

Comments
 (0)