Skip to content

Conversation

@antn
Copy link
Member

@antn antn commented Nov 18, 2025

Toward AUTH-5516.

Description

This adds support for the new resend invitation endpoint.

It can be used like this:

workos.userManagement.resendInvitation("invitation_123")

Documentation

Does this require changes to the WorkOS Docs? E.g. the API Reference or code snippets need updates.

[x] Yes

If yes, link a related docs PR and add a docs maintainer as a reviewer. Their approval is required.

https://github.com/workos/workos/pull/47145

@antn antn self-assigned this Nov 18, 2025
@linear
Copy link

linear bot commented Nov 18, 2025

@antn antn requested a review from a team November 18, 2025 09:51
@greptile-apps
Copy link
Contributor

greptile-apps bot commented Nov 18, 2025

Greptile Summary

  • Added resendInvitation method to UserManagementApi to support resending invitation emails via new /user_management/invitations/:id/resend endpoint
  • Comprehensive test coverage includes success case and error handling for expired, revoked, accepted, and not found invitations

Confidence Score: 5/5

  • This PR is safe to merge with no issues found
  • Implementation follows existing patterns exactly, uses safe parameterized API calls, includes comprehensive test coverage for success and error cases, and introduces no security vulnerabilities
  • No files require special attention

Sequence Diagram

sequenceDiagram
    participant User
    participant App
    participant UserManagementApi
    participant WorkOS
    User->>App: "Call resendInvitation(invitation_id)"
    App->>UserManagementApi: "resendInvitation(id)"
    UserManagementApi->>WorkOS: "POST /user_management/invitations/:id/resend"
    WorkOS-->>UserManagementApi: "Return Invitation object"
    UserManagementApi-->>App: "Return Invitation"
    App-->>User: "Invitation resent successfully"
Loading

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2 files reviewed, no comments

Edit Code Review Agent Settings | Greptile
React with 👍 or 👎 to share your feedback on this new summary format

@antn antn merged commit 7bae6c7 into main Nov 19, 2025
3 checks passed
@antn antn deleted the resend-invite branch November 19, 2025 00:50
@antn antn mentioned this pull request Nov 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants