fix: add invitation_token parameter to authentication methods#438
fix: add invitation_token parameter to authentication methods#438gjtorikian merged 1 commit intomainfrom
invitation_token parameter to authentication methods#438Conversation
9239c9e to
58eb71d
Compare
invitation_token parameter to authentication methodsinvitation_token parameter to authentication methods
Greptile OverviewGreptile SummaryThis PR adds an optional Key integration point is Confidence Score: 3/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant App as App (workos-ruby)
participant UM as WorkOS::UserManagement
participant Client as WorkOS::Client
participant API as WorkOS API
App->>UM: authenticate_with_password(..., invitation_token)
UM->>Client: post_request(path:"/user_management/authenticate", body:{..., invitation_token})
Client->>API: HTTPS POST /user_management/authenticate (JSON)
API-->>Client: 2xx response (tokens + user)
Client-->>UM: response
UM-->>App: AuthenticationResponse
App->>UM: authenticate_with_code(..., invitation_token)
UM->>Client: post_request(... body includes invitation_token)
Client->>API: HTTPS POST /user_management/authenticate
API-->>Client: 2xx response
Client-->>UM: response
UM-->>App: AuthenticationResponse
App->>UM: authenticate_with_magic_auth(..., invitation_token)
UM->>Client: post_request(... body includes invitation_token)
Client->>API: HTTPS POST /user_management/authenticate
API-->>Client: 2xx response
Client-->>UM: response
UM-->>App: AuthenticationResponse
|
Additional Comments (1)
These methods always include |
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* chore(main): release workos 6.1.0 * chore: add missing changelog entry for invitation_token fix (#438) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: workos-sdk-automation[bot] <255426317+workos-sdk-automation[bot]@users.noreply.github.com> Co-authored-by: Garen J. Torikian <gjtorikian@users.noreply.github.com> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Description
Based on the WorkOS API documentation, this kwarg is missing.
Closes #337
Documentation
Does this require changes to the WorkOS Docs? E.g. the API Reference or code snippets need updates.
If yes, link a related docs PR and add a docs maintainer as a reviewer. Their approval is required.