-
-
Notifications
You must be signed in to change notification settings - Fork 142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] Create user and login with password #30
Conversation
… flow check happy
chore(flow): Added type declarations for accounts and made eslint and flow check happy
Circleci yarn
Server side Accounts.createUser
* Setup jest
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good in my quick review.
const nextState = state; | ||
switch (action.type) { | ||
case LOGIN: { | ||
break; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these still to do on purpose?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good call. The LOGIN
case can be removed. SET_USER
still needs to be filled out for reactivity in the ui when the user is logged in.
return this.instance.addEmail(userId, newEmail, verified); | ||
}, | ||
removeEmail(userId: string, newEmail: string): Promise<void> { | ||
return this.instance.addEmail(userId, newEmail); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be this.instance.removeEmail
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Eagle eye. Good catch. Will fix.
return this.instance.addEmail(userId, newEmail); | ||
}, | ||
verifyEmail(userId: string, email: string): Promise<void> { | ||
return this.instance.addEmail(userId, email); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this.instance.verifyEmail
?
…dded reduxLogger to client config to allow logging
My apologies for the giant PR.
This PR introduces the core accounts package. It provides the client and server side logic for user creation and authentication.