Skip to content

Commit 196e3d1

Browse files
committed
Applied PR #110
1 parent 431e2f6 commit 196e3d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/client/src/accounts-client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import { hashPassword } from './encryption';
3131
import { TransportInterface } from './transport-interface';
3232

3333
const isValidUserObject = (user: PasswordLoginUserIdentityType) =>
34-
has(user, 'user') || has(user, 'email') || has(user, 'id');
34+
has(user, 'username') || has(user, 'email') || has(user, 'id');
3535

3636
const ACCESS_TOKEN = 'accounts:accessToken';
3737
const REFRESH_TOKEN = 'accounts:refreshToken';

0 commit comments

Comments
 (0)