Repository navigation
feat(pipes): Return state from authorizeDataIntegration - #1750
Merged
Merged
Conversation
Regenerated from the spec's new required DataIntegrationAuthorizeUrlResponse.state field. Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Contributor
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
Original prompt from dan
|
Contributor
[Medium impact] The PR appears safe to merge. SummaryAdds
Reviews (1) · Last reviewed commit: "feat(pipes): Return state from authorize..." · Reviewed by Greptile |
gjtorikian
approved these changes
Nov 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The API now returns a
statevalue fromPOST /data-integrations/{slug}/authorize. WorkOS adds it toreturn_totogether withconnect_codeorerror. Apps should store it in the user's session along with thecode_verifier, then compare it when the user comes back.This adds
statetoDataIntegrationAuthorizeUrlResponseand its deserializer, soworkos.pipes.authorizeDataIntegration()returns it.The interface, serializer, and fixture come from running oagen on the latest openapi-spec with
--services Pipes. I kept only the files for thestatefield and dropped the rest of the regen, which touched unrelated files. I also updated the Pipes specs to assert onstate.The emitter types
stateas optional (state?: string) and the deserializer falls back to''. It handles new fields on existing response models the same way elsewhere (e.g. vaultObjectVersion.etag), which means adding the field doesn't break code that builds this type by hand.Documentation
Does this require changes to the WorkOS Docs? E.g. the API Reference or code snippets need updates.
Link to Devin session: https://app.devin.ai/sessions/c1fae00a96eb4b33a1d36d1aab402610
Open in Devin Desktop: https://app.devin.ai/desktop/session/c1fae00a96eb4b33a1d36d1aab402610?variant=devin
Requested by: @dandorman