-
Notifications
You must be signed in to change notification settings - Fork 1
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
Add user login support to SDK #76
Conversation
This reverts commit ffb94ba.
pkg/types/resource/user_trait.go
Outdated
@@ -34,6 +34,22 @@ func WithEmail(email string, primary bool) UserTraitOption { | |||
return nil | |||
} | |||
} | |||
func WithUsername(username string, primary bool) UserTraitOption { |
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.
I'm not sure Username
is the right name for this field. If it is, this option should probably be renamed to WithUserUsername()
since it is an option specific to user traits.
maybe external_identifier
?
// Indicates if this is the user's primary username. Only one entry can be marked as primary. | ||
bool is_primary = 2; | ||
} | ||
repeated Username usernames = 6; |
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.
nit: can this go to the bottom so it is easier for the next person to know the next field number?
No description provided.