Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -321,9 +321,14 @@ const SignIn: FC<SignInProps> = ({
* Clear all flow-related storage and state.
*/
const clearFlowState = async (): Promise<void> => {
// Clear the expired flow state to prevent rendering a stale form with a null executionId.
// Kept before the first await so callers that do not await this function still apply the
// reset in one batch, ahead of the setError that follows.
setExecutionId(null);
await setChallengeToken(null);
setComponents([]);
setAdditionalData({});
Comment thread
coderabbitai[bot] marked this conversation as resolved.
setIsFlowInitialized(false);
await setChallengeToken(null);
try {
const storageManager: any = await getStorageManager();
await storageManager?.removeHybridDataParameter?.('authId');
Expand Down
Loading