Skip to content

Commit 0cd04c2

Browse files
Get rid of originalFactorIds and use showBackButton instead
1 parent 5760e91 commit 0cd04c2

File tree

22 files changed

+46
-75
lines changed

22 files changed

+46
-75
lines changed

lib/build/index2.js

Lines changed: 8 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/build/recipe/authRecipe/types.d.ts

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/build/recipe/thirdparty/components/features/signInAndUp/index.d.ts

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/build/recipe/webauthn/components/features/signIn/index.d.ts

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/build/recipe/webauthn/components/features/signUp/index.d.ts

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/build/recipe/webauthn/types.d.ts

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/build/thirdpartyprebuiltui.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/build/types.d.ts

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/build/webauthnprebuiltui.js

Lines changed: 11 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/ts/recipe/authRecipe/components/feature/authPage/authPage.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -129,10 +129,6 @@ const AuthPageInner: React.FC<AuthPageProps> = (props) => {
129129
const [factorList, setFactorList] = useState<string[] | undefined>(props.factors);
130130
const [isSignUp, setIsSignUp] = useState<boolean>(props.isSignUp ?? isSignUpFromQS ?? st.defaultToSignUp);
131131

132-
// Make a copy of props.factors so that we can pass it to child components
133-
// regardless of the state being updated afterwards.
134-
const [originalFactorIds, setOriginalFactorIds] = useState<string[] | undefined>(props.factors);
135-
136132
// We use this to signal that we need to update the components we show on screen
137133
const [rebuildReqCount, setRebuildReqCount] = useState(0);
138134
const lastBuild = useRef<{ buildReq: number | undefined }>({ buildReq: undefined });
@@ -301,7 +297,6 @@ const AuthPageInner: React.FC<AuthPageProps> = (props) => {
301297
abortCtl.signal
302298
).then(() => {
303299
lastBuild.current.buildReq = rebuildReqCount;
304-
setOriginalFactorIds(authComponentListInfo?.factorIds);
305300
}, rethrowInRender);
306301
}
307302
return () => {
@@ -384,7 +379,6 @@ const AuthPageInner: React.FC<AuthPageProps> = (props) => {
384379
showBackButton: showUseAnotherLink,
385380
termsOfServiceLink,
386381
userContext,
387-
originalFactorIds,
388382
}
389383
: undefined;
390384

0 commit comments

Comments
 (0)