Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 91f44a8

Browse files
committedJan 16, 2020
add undocument directLogin bool change to readme
1 parent 8e9c709 commit 91f44a8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed
 

‎README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,11 @@ yarn add react-netlify-identity
4848
- `setUser`: directly set the user object. Not advised; use carefully!! mostly you should use the methods below
4949
- `isConfirmedUser: boolean`: if they have confirmed their email
5050
- `isLoggedIn: boolean`: if the user is logged in
51-
- `signupUser(email: string, password: string, data: Object)`
51+
- `signupUser(email: string, password: string, data: Object, directLogin: boolean = true)`
52+
- `directLogin` will internally set state to the newly created user
53+
- `isConfirmedUser` will be false
54+
- `isLoggedIn` will be true
55+
- setting `directLogin` to false won't trigger the state
5256
- `loginUser(email: string, password: string, remember: boolean = true)` - we default the `remember` term to `true` since you'll usually want to remember the session in localStorage. set it to false if you need to
5357
- `logoutUser()`
5458
- `requestPasswordRecovery(email: string)`

0 commit comments

Comments
 (0)
Please sign in to comment.