-
Notifications
You must be signed in to change notification settings - Fork 3
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
Feature/sessions #271
Feature/sessions #271
Conversation
services/users/src/routes/users.ts
Outdated
const user = userCollection.find(user => user.address === address?.toLowerCase()) | ||
res.setHeader('Content-Type', 'application/json') | ||
res.status(200) | ||
if (user) { |
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.
Just return { user } or { error }.
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.
Not sure what you mean by this one. I simplified it I guess, but not sure it's what you want.
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.
The updates look good, it'll be easier to explain one or two of them next time we meet, and we can discuss more changes then. Fully approved to merge.
|
@shanejearley - PR for #255. Not much to note at this point except that it is working well on first connect (signUp / login), adding a sub-account to a user's primary account, and logging out. Will continue maturing and protecting more routes as we build out the users backend and API. Let me know if you have any questions.