Skip to content
This repository was archived by the owner on Feb 16, 2022. It is now read-only.

Commit 25384ce

Browse files
committed
Tidy comments and fix typo
1 parent 210d01d commit 25384ce

File tree

2 files changed

+20
-10
lines changed

2 files changed

+20
-10
lines changed

management/organization.go

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,10 @@ type OrganizationConnection struct {
3737
// ID of the connection.
3838
ConnectionID *string `json:"connection_id,omitempty"`
3939

40-
// When true, all users that log in with this connection will be automatically granted membership in the organization. When false, users must be granted membership in the organization before logging in with this connection.
40+
// When true, all users that log in with this connection will be
41+
// automatically granted membership in the organization. When false, users
42+
// must be granted membership in the organization before logging in with
43+
// this connection.
4144
AssignMembershipOnLogin *bool `json:"assign_membership_on_login,omitempty"`
4245

4346
// Connection details
@@ -76,26 +79,32 @@ type OrganizationInvitation struct {
7679
// The invitation url to be send to the invitee.
7780
InvitationURL *string `json:"invitation_url,omitempty"`
7881

79-
// The ISO 8601 formatted timestamp representing the creation time of the invitation.
82+
// The ISO 8601 formatted timestamp representing the creation time of the
83+
// invitation.
8084
CreatedAt *string `json:"created_at,omitempty"`
8185

82-
// Number of seconds for which the invitation is valid before expiration. If unspecified or set to 0, this
83-
// value defaults to 604800 seconds (7 days). Max value: 2592000 seconds (30 days).
86+
// Number of seconds for which the invitation is valid before expiration. If
87+
// unspecified or set to 0, this value defaults to 604800 seconds (7 days).
88+
// Max value: 2592000 seconds (30 days).
8489
TTLSec *int `json:"ttl_sec,omitempty"`
8590

86-
// The ISO 8601 formatted timestamp representing the expiration time of the invitation.
91+
// The ISO 8601 formatted timestamp representing the expiration time of the
92+
// invitation.
8793
ExpiresAt *string `json:"expires_at,omitempty"`
8894

89-
// Auth0 client ID. Used to resolve the application's login initiation endpoint.
95+
// Auth0 client ID. Used to resolve the application's login initiation
96+
// endpoint.
9097
ClientID *string `json:"client_id,omitempty"`
9198

9299
// The id of the connection to force invitee to authenticate with.
93100
ConnectionID *string `json:"connection_id,omitempty"`
94101

95-
// Data related to the user that does affect the application's core functionality.
102+
// Data related to the user that does affect the application's core
103+
// functionality.
96104
AppMetadata map[string]interface{} `json:"app_metadata,omitempty"`
97105

98-
// Data related to the user that does not affect the application's core functionality.
106+
// Data related to the user that does not affect the application's core
107+
// functionality.
99108
UserMetadata map[string]interface{} `json:"user_metadata,omitempty"`
100109

101110
// List of roles IDs to associated with the user.
@@ -104,7 +113,8 @@ type OrganizationInvitation struct {
104113
// The id of the invitation ticket
105114
TicketID *string `json:"ticket_id,omitempty"`
106115

107-
// Whether the user will receive an invitation email (true) or no email (false), true by default
116+
// Whether the user will receive an invitation email (true) or no email
117+
// (false), true by default
108118
SendInvitationEmail *bool `json:"send_invitation_email,omitempty"`
109119
}
110120

management/user.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ func (m *UserManager) Roles(id string, opts ...RequestOption) (r *RoleList, err
379379
return
380380
}
381381

382-
// AssignRoles assignes roles to a user.
382+
// AssignRoles assigns roles to a user.
383383
//
384384
// See: https://auth0.com/docs/api/management/v2#!/Users/post_user_roles
385385
func (m *UserManager) AssignRoles(id string, roles []*Role, opts ...RequestOption) error {

0 commit comments

Comments
 (0)