Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove duplicate sign-in calls #30003

Merged
merged 1 commit into from
Jan 30, 2025
Merged

Conversation

mathieuartu
Copy link
Contributor

@mathieuartu mathieuartu commented Jan 30, 2025

Description

This PR ensures that the sign-in process happen only at the "pin extension" screen during onboarding.
It was previously also called at the "creation successful" screen, but this is not needed since onboarding always ends with the "pin extension" screen.

It also removes the useCreateSession hook, as this is not needed anymore since we directly call performSignIn from the background.

Open in GitHub Codespaces

Related issues

Fixes: https://consensyssoftware.atlassian.net/browse/IDENTITY-9

Manual testing steps

  1. Do a fresh install
  2. Open your network tab and filter with "login"
  3. Do an onboarding and verify that this is called only once

Screenshots/Recordings

Before

After

Pre-merge author checklist

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

Copy link
Contributor

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

@mathieuartu mathieuartu marked this pull request as ready for review January 30, 2025 11:20
@mathieuartu mathieuartu requested review from a team as code owners January 30, 2025 11:20
@metamaskbot
Copy link
Collaborator

Builds ready [918daf6]
Page Load Metrics (1567 ± 30 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint1454170315686431
domContentLoaded1442169615476230
load1456170415676330
domInteractive24119402713
backgroundConnect85225157
firstReactRender1676412512
getState46011147
initialActions00000
loadScripts1021129611076531
setupStore74813115
uiStartup1643201117858340
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: -1.72 KiB (-0.02%)
  • common: 0 Bytes (0.00%)

@mathieuartu mathieuartu added this pull request to the merge queue Jan 30, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 30, 2025
@mathieuartu mathieuartu added this pull request to the merge queue Jan 30, 2025
Merged via the queue into main with commit 267be65 Jan 30, 2025
79 checks passed
@mathieuartu mathieuartu deleted the fix/remove-duplicate-sign-in branch January 30, 2025 15:57
@github-actions github-actions bot locked and limited conversation to collaborators Jan 30, 2025
@metamaskbot metamaskbot added the release-12.12.0 Issue or pull request that will be included in release 12.12.0 label Jan 30, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-12.12.0 Issue or pull request that will be included in release 12.12.0 team-identity
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants