Skip to content

Commit a8a8106

Browse files
author
sw-yx
committed
actually make it remember
1 parent 3b330e3 commit a8a8106

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export function useNetlifyIdentity(domain: string, onAuthChange: authChangeParam
3030
// make sure the Registration preferences under Identity settings in your Netlify dashboard are set to Open.
3131
const signupUser = (email: string, password: string, data: Object) =>
3232
goTrueInstance.signup(email, password, data).then(_setUser) // TODO: make setUser optional?
33-
const loginUser = (email: string, password: string, remember: boolean) =>
33+
const loginUser = (email: string, password: string, remember: boolean = true) =>
3434
goTrueInstance.login(email, password, remember).then(_setUser)
3535
const requestPasswordRecovery = (email: string) => goTrueInstance.requestPasswordRecovery(email)
3636
const recoverAccount = (token: string, remember?: boolean | undefined) => goTrueInstance.recover(token, remember)

0 commit comments

Comments
 (0)