Skip to content

Commit 82aed0a

Browse files
committed
fix: deployment id url parameter
1 parent 3659bab commit 82aed0a

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

lib/types.ts

+3-7
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export type LoginMethodParams = Pick<
1818
| "connectionId"
1919
| "redirectURL"
2020
| "hasSuccessPage"
21-
| "workflowId"
21+
| "workflowDeploymentId"
2222
| "releaseId"
2323
>;
2424

@@ -112,13 +112,9 @@ export type LoginOptions = {
112112
*/
113113
nonce?: string;
114114
/**
115-
* Workflow ID to trigger on authentication
115+
* Workflow Deployment ID to trigger on authentication
116116
*/
117-
workflowId?: string;
118-
/**
119-
* Release ID to trigger on authentication
120-
*/
121-
releaseId?: string;
117+
workflowDeploymentId?: string;
122118
};
123119

124120
export enum IssuerRouteTypes {

lib/utils/mapLoginMethodParamsForUrl.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ export const mapLoginMethodParamsForUrl = (
1818
org_code: options.orgCode,
1919
org_name: options.orgName,
2020
has_success_page: options.hasSuccessPage?.toString(),
21-
workflow_id: options.workflowId,
22-
release_id: options.releaseId,
21+
workflow_deployment_id: options.workflowDeploymentId
2322
};
2423

2524
Object.keys(translate).forEach(

0 commit comments

Comments
 (0)