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

[Fix] Separate Username from Id #29

Closed
wants to merge 8 commits into from

Conversation

mstarongithub
Copy link

#28 but with correct branch selected

The GetUserByWebAuthnId function should have to create a user.
Reason: The app might separate username and webauthn id (for cases where
the username is editable). Thus, we can't assume that the username is
known in that function
Example now works again with the expanded interface
Forgot to update func name in handlers
@egregors egregors self-requested a review August 18, 2024 10:10
@egregors
Copy link
Owner

Just a few notes for me

  • think about ifaces naming
  • generate new mocks
  • update or add tests
  • update readme

@mstarongithub
Copy link
Author

My main question is then, what would be a better name for a function to get a user with a given id? GetUserById? Imo it should absolutely go into the UserStore interface since it's a vital component of storing and loading users

@egregors
Copy link
Owner

egregors commented Nov 28, 2024

@mstarongithub thanks for your impact! I used your solution to huge rework. At this point I gonna close this PR

@egregors egregors closed this Nov 28, 2024
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