@@ -49,7 +49,7 @@ export interface AcceptInviteProps {
4949 * Flow ID from the invite link.
5050 * If not provided, will be extracted from URL query parameters.
5151 */
52- flowExecId ?: string ;
52+ executionId ?: string ;
5353
5454 /**
5555 * Invite token from the invite link.
@@ -101,14 +101,14 @@ export interface AcceptInviteProps {
101101/**
102102 * Helper to extract query parameters from URL.
103103 */
104- const getUrlParams = ( ) : { flowExecId ?: string ; inviteToken ?: string } => {
104+ const getUrlParams = ( ) : { executionId ?: string ; inviteToken ?: string } => {
105105 if ( typeof window === 'undefined' ) {
106106 return { } ;
107107 }
108108
109109 const params : any = new URLSearchParams ( window . location . search ) ;
110110 return {
111- flowExecId : params . get ( 'flowExecId ' ) || undefined ,
111+ executionId : params . get ( 'executionId ' ) || undefined ,
112112 inviteToken : params . get ( 'inviteToken' ) || undefined ,
113113 } ;
114114} ;
@@ -118,7 +118,7 @@ const getUrlParams = (): {flowExecId?: string; inviteToken?: string} => {
118118 *
119119 * This component is designed for end users accessing the thunder-gate app via an invite link.
120120 * It automatically:
121- * 1. Extracts flowExecId and inviteToken from URL query parameters
121+ * 1. Extracts executionId and inviteToken from URL query parameters
122122 * 2. Validates the invite token with the backend
123123 * 3. Displays the password form if token is valid
124124 * 4. Completes the accept invite when password is set
@@ -127,7 +127,7 @@ const getUrlParams = (): {flowExecId?: string; inviteToken?: string} => {
127127 * ```tsx
128128 * import { AcceptInvite } from '@asgardeo/react';
129129 *
130- * // URL: /invite?flowExecId =xxx&inviteToken=yyy
130+ * // URL: /invite?executionId =xxx&inviteToken=yyy
131131 *
132132 * const AcceptInvitePage = () => {
133133 * return (
@@ -153,7 +153,7 @@ const getUrlParams = (): {flowExecId?: string; inviteToken?: string} => {
153153 */
154154const AcceptInvite : FC < AcceptInviteProps > = ( {
155155 baseUrl,
156- flowExecId : flowExecIdProp ,
156+ executionId : executionIdProp ,
157157 inviteToken : inviteTokenProp ,
158158 onComplete,
159159 onError,
@@ -167,9 +167,9 @@ const AcceptInvite: FC<AcceptInviteProps> = ({
167167 showSubtitle = true ,
168168} : AcceptInviteProps ) : ReactElement => {
169169 // Extract from URL if not provided as props
170- const { flowExecId : urlFlowExecId , inviteToken : urlInviteToken } = useMemo ( ( ) => getUrlParams ( ) , [ ] ) ;
170+ const { executionId : urlExecutionId , inviteToken : urlInviteToken } = useMemo ( ( ) => getUrlParams ( ) , [ ] ) ;
171171
172- const flowExecId : any = flowExecIdProp || urlFlowExecId ;
172+ const executionId : any = executionIdProp || urlExecutionId ;
173173 const inviteToken : any = inviteTokenProp || urlInviteToken ;
174174
175175 // Determine base URL
@@ -211,7 +211,7 @@ const AcceptInvite: FC<AcceptInviteProps> = ({
211211
212212 return (
213213 < BaseAcceptInvite
214- flowExecId = { flowExecId }
214+ executionId = { executionId }
215215 inviteToken = { inviteToken }
216216 onSubmit = { handleSubmit }
217217 onComplete = { onComplete }
0 commit comments