Skip to content

Commit e663b15

Browse files
committed
fix(auth): Fix bug related to flowId ad third party auth
1 parent a4d7711 commit e663b15

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

  • packages/fxa-settings/src

packages/fxa-settings/src/components/ThirdPartyAuth/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ const ThirdPartySignInForm = ({
187187
if (stateRef.current) {
188188
stateRef.current.value = getState();
189189
}
190-
}, [party, viewName, logViewEventOnce]);
190+
}, [party, stateRef, viewName, logViewEventOnce]);
191191

192192

193193
if (onSubmit === undefined) {

packages/fxa-settings/src/pages/PostVerify/ThirdPartyAuthCallback/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@ const ThirdPartyAuthCallback = ({
136136

137137
// Extract relayed fxa parameters
138138
const params = new URLSearchParams(fxaParams || '');
139-
const flowId = params.get('flowId') || undefined;
140-
const flowBeginTime = params.get('flowBeginTime') || undefined;
139+
const flowId = params.get('flowId') || params.get('flow_id') || undefined;
140+
const flowBeginTime = params.get('flowBeginTime') || params.get('flow_begin_time') || undefined;
141141
const originalService =
142142
params.get('service') || params.get('client_id') || undefined;
143143
const linkedAccount: LinkedAccountData =

0 commit comments

Comments
 (0)