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

feat: update DTO with username field #1583

Merged
merged 2 commits into from
Aug 23, 2024
Merged

Conversation

bjoern-m
Copy link
Contributor

Description

  • Added username field to the DTO
  • Refactored email and username fields to use string pointers across the application for better nil handling
  • The response of hanko.user.getCurrent() now contains the username

@bjoern-m bjoern-m marked this pull request as ready for review August 19, 2024 15:04
Comment on lines 127 to 128
email: string;
username: string;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't be both email and username be optional? Because they are pointers in the backend and marked with omitempty.

@bjoern-m bjoern-m merged commit 92a8743 into main Aug 23, 2024
9 checks passed
@bjoern-m bjoern-m deleted the feat-add-username-to-dto branch August 23, 2024 09:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants