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

Add user login support to SDK #76

Merged
merged 5 commits into from
Oct 11, 2023
Merged

Conversation

loganintech
Copy link
Contributor

No description provided.

@@ -34,6 +34,22 @@ func WithEmail(email string, primary bool) UserTraitOption {
return nil
}
}
func WithUsername(username string, primary bool) UserTraitOption {
Copy link
Contributor

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;
Copy link
Contributor

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?

@loganintech loganintech changed the title Add username support to SDK Add user login support to SDK Oct 10, 2023
@loganintech loganintech merged commit 9b2ce27 into main Oct 11, 2023
4 checks passed
@loganintech loganintech deleted the logan/brad/add-username-support branch October 11, 2023 00:03
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