Skip to content

Commit

Permalink
Expose additional errors on invite batch
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 committed Nov 4, 2024
1 parent f9c13ee commit 91b05f6
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 91b05f6

Please sign in to comment.