Skip to content

Commit d9d723b

Browse files
committed
feat: add workflowId and ReleaseId query params
1 parent 375a260 commit d9d723b

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

lib/types.ts

+10
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ export type LoginMethodParams = Pick<
1818
| "connectionId"
1919
| "redirectURL"
2020
| "hasSuccessPage"
21+
| "workflowId"
22+
| "releaseId"
2123
>;
2224

2325
export type LoginOptions = {
@@ -109,6 +111,14 @@ export type LoginOptions = {
109111
* Single use code to prevent replay attacks
110112
*/
111113
nonce?: string;
114+
/**
115+
* Workflow ID to trigger on authentication
116+
*/
117+
workflowId?: string;
118+
/**
119+
* Release ID to trigger on authentication
120+
*/
121+
releaseId?: string;
112122
};
113123

114124
export enum IssuerRouteTypes {

lib/utils/mapLoginMethodParamsForUrl.ts

+2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ 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,
2123
};
2224

2325
Object.keys(translate).forEach(

0 commit comments

Comments
 (0)