Skip to content

feat: change flow api version to v2#1323

Open
asafshen wants to merge 3 commits intomainfrom
add-flow-version-and-change-delimiter
Open

feat: change flow api version to v2#1323
asafshen wants to merge 3 commits intomainfrom
add-flow-version-and-change-delimiter

Conversation

@asafshen
Copy link
Member

Related Issues

https://github.com/descope/etc/issues/13930

Description

support v2 routes that will basically introduce a new delimiter --- (instead |#| for v1)

Copilot AI review requested due to automatic review settings January 28, 2026 11:03
@vercel
Copy link

vercel bot commented Jan 28, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
access-key-management-widget Ready Ready Preview, Comment Feb 23, 2026 0:52am
audit-management-widget Ready Ready Preview, Comment Feb 23, 2026 0:52am
role-management-widget Ready Ready Preview, Comment Feb 23, 2026 0:52am
user-management-widget Ready Ready Preview, Comment Feb 23, 2026 0:52am
user-profile-widget Ready Ready Preview, Comment Feb 23, 2026 0:52am

Request Review

@nx-cloud
Copy link

nx-cloud bot commented Jan 28, 2026

View your CI Pipeline Execution ↗ for commit db96b76

Command Status Duration Result
nx affected --target test:e2e ❌ Failed 5m 56s View ↗
nx affected --target test ✅ Succeeded 2m 57s View ↗
nx affected --target lint --fix=true ✅ Succeeded 34s View ↗
nx affected --target build ✅ Succeeded 2m 15s View ↗
nx affected --target licenseCheck ✅ Succeeded <1s View ↗

☁️ Nx Cloud last updated this comment at 2026-02-23 13:05:45 UTC

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request updates the flow API from v1 to v2, introducing a new delimiter pattern for execution IDs. The change replaces |#| with --- as the delimiter and updates all flow API endpoints from /v1/flow/ to /v2/flow/.

Changes:

  • Updated flow API endpoints from v1 to v2 (/v1/flow/start/v2/flow/start, /v1/flow/next/v2/flow/next)
  • Changed execution ID delimiter from |#| to --- in regex patterns and test data
  • Updated all corresponding tests to reflect the new API version and delimiter format

Reviewed changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated no comments.

Show a summary per file
File Description
packages/sdks/core-js-sdk/src/constants/apiPaths.ts Updated flow API paths from v1 to v2
packages/sdks/core-js-sdk/test/sdk/flow.test.ts Updated test expectations for v2 API endpoints
packages/sdks/web-js-sdk/src/enhancers/withFlowNonce/constants.ts Updated flow path constants to v2
packages/sdks/web-js-sdk/src/enhancers/withFlowNonce/helpers.ts Updated regex pattern to parse new --- delimiter
packages/sdks/web-js-sdk/test/sdk.test.ts Updated test expectations for v2 flow/start endpoint
packages/sdks/web-js-sdk/test/lastLoggedInUser.test.ts Updated test expectations for v2 flow endpoints
packages/sdks/web-js-sdk/test/flowNonce.test.ts Updated test mock data to use --- delimiter and v2 endpoints
packages/sdks/web-js-sdk/test/beforeRequest-dtd.test.ts Updated test paths to v2 flow/start endpoint
packages/sdks/web-component/src/lib/helpers/helpers.ts Updated regex pattern to extract flow ID using new delimiter
packages/sdks/web-component/test/helpers/index.test.ts Updated test data to use --- delimiter format
packages/sdks/web-component/e2e/descope-wc.spec.ts Updated E2E test mock response to use new delimiter

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants