Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@cmatheson
Copy link
Contributor

Description

Documentation

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

[ ] Yes

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

@cmatheson cmatheson requested a review from a team as a code owner December 1, 2025 23:40
@cmatheson cmatheson requested review from a team and mthadley December 1, 2025 23:40
@greptile-apps
Copy link
Contributor

greptile-apps bot commented Dec 1, 2025

Greptile Overview

Greptile Summary

Added support for 5 new OAuth authentication providers: Bitbucket, GitLab, LinkedIn, Vercel, and CrossAppAuth to the AuthenticationMethod type union.

  • Added BitbucketOAuth, GitLabOAuth, LinkedInOAuth, VercelOAuth, and CrossAppAuth to the authentication method type
  • Changes are purely additive to the type system with no breaking changes
  • The serializer will handle these new methods automatically through passthrough logic

Confidence Score: 5/5

  • This PR is safe to merge with minimal risk
  • The changes are purely additive to a TypeScript type union, adding 5 new OAuth provider literals. No logic changes, no security concerns, and backwards compatible. The existing serializer will handle these new values without modification.
  • No files require special attention

Important Files Changed

File Analysis

Filename Score Overview
src/user-management/interfaces/authentication-response.interface.ts 5/5 Added 5 new OAuth provider authentication methods to the type union

Sequence Diagram

sequenceDiagram
    participant API as WorkOS API
    participant SDK as WorkOS Node SDK
    participant App as Application Code
    
    Note over API,App: Authentication Flow
    
    App->>SDK: authenticate(code, provider)
    SDK->>API: POST /authenticate
    API-->>SDK: AuthenticationResponseResponse
    Note over SDK: Deserialize response
    SDK->>SDK: Check authentication_method
    Note over SDK: New methods: BitbucketOAuth,<br/>GitLabOAuth, LinkedInOAuth,<br/>VercelOAuth, CrossAppAuth
    SDK-->>App: AuthenticationResponse
    Note over App: Access user.authenticationMethod<br/>(includes new OAuth providers)
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.

1 file reviewed, no comments

Edit Code Review Agent Settings | Greptile

@cmatheson cmatheson mentioned this pull request Dec 1, 2025
@cmatheson cmatheson merged commit 97fec6a into main Dec 1, 2025
5 checks passed
@cmatheson cmatheson deleted the add-cross-app-auth-to-types branch December 1, 2025 23:46
cmatheson added a commit that referenced this pull request Dec 1, 2025
## Description

- includes #1405

## Documentation

Does this require changes to the WorkOS Docs? E.g. the [API
Reference](https://workos.com/docs/reference) or code snippets need
updates.

```
[ ] Yes
```

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

<!-- av pr metadata
This information is embedded by the av CLI when creating PRs to track
the status of stacks when using Aviator. Please do not delete or edit
this section of the PR.
```
{"parent":"main","parentHead":"","trunk":"main"}
```
-->
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