Skip to content
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

Merged
merged 10 commits into from
Mar 2, 2023
Merged

Feature/sessions #271

merged 10 commits into from
Mar 2, 2023

Conversation

ccali11
Copy link
Contributor

@ccali11 ccali11 commented Mar 1, 2023

@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.

apps/web/src/composables/users.ts Outdated Show resolved Hide resolved
apps/web/src/composables/users.ts Outdated Show resolved Hide resolved
apps/web/src/composables/users.ts Outdated Show resolved Hide resolved
apps/web/src/sessions.config.ts Outdated Show resolved Hide resolved
services/users/src/index.ts Show resolved Hide resolved
services/users/src/routes/signupLogin.ts Outdated Show resolved Hide resolved
const user = userCollection.find(user => user.address === address?.toLowerCase())
res.setHeader('Content-Type', 'application/json')
res.status(200)
if (user) {
Copy link
Contributor

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 }.

Copy link
Contributor Author

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.

Copy link
Contributor

@shanejearley shanejearley left a 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 shanejearley merged commit b887b96 into develop Mar 2, 2023
@shanejearley shanejearley deleted the feature/sessions branch March 2, 2023 23:05
@ccali11
Copy link
Contributor Author

ccali11 commented Mar 3, 2023

@ccali11

  • Change signupLogin to login, you doofus.
  • Remove unnecessary methods in auth.ts composable
  • Remove login and signup routes (defer to auth.ts

@ccali11 ccali11 mentioned this pull request Mar 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants