Skip to content

Commit

Permalink
Expose additional errors on invite batch (#470)
Browse files Browse the repository at this point in the history
So we can see which users failed on the invite sent and which not
  • Loading branch information
aviadl authored Nov 4, 2024
1 parent f9c13ee commit eae93be
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions descope/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -525,8 +525,9 @@ type UsersFailedResponse struct {
}

type UsersBatchResponse struct {
CreatedUsers []*UserResponse `json:"createdUsers,omitempty"`
FailedUsers []*UsersFailedResponse `json:"failedUsers,omitempty"`
CreatedUsers []*UserResponse `json:"createdUsers,omitempty"`
FailedUsers []*UsersFailedResponse `json:"failedUsers,omitempty"`
AdditionalErrors map[string]string `json:"additionalErrors,omitempty"`
}

func (ur *UserResponse) GetCreatedTime() time.Time {
Expand Down

0 comments on commit eae93be

Please sign in to comment.