-
Notifications
You must be signed in to change notification settings - Fork 187
fix(auth): upgrade PIN hashing to Argon2id v2 with migration (#2399) #2464
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
Open
Kaushikgupta469
wants to merge
7
commits into
inji:develop
Choose a base branch
from
Kaushikgupta469:Pin-Lockout-Fix
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
c1641f9
fix(auth): upgrade PIN hashing to Argon2id v2 with migration (#2399)
Kaushikgupta469 c8b99d4
fix(auth): Refractor changes for PIN hashing to Argon2id v2 with mig…
Kaushikgupta469 0a9560d
Merge branch 'develop' into Pin-Lockout-Fix
Kaushikgupta469 e229fea
fix(auth): use jest.fn() stubs in auth tests (#2399)
Kaushikgupta469 450896f
fix(auth): address review findings - separator constant, hash error h…
Kaushikgupta469 8623675
Merge branch 'develop' into Pin-Lockout-Fix
Kaushikgupta469 12c4f55
Merge remote-tracking branch 'upstream/develop' into Pin-Lockout-Fix
Kaushikgupta469 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,51 +1,71 @@ | ||
| // This file was automatically generated. Edits will be overwritten | ||
|
|
||
| // This file was automatically generated. Edits will be overwritten | ||
|
|
||
| export interface Typegen0 { | ||
| '@@xstate/typegen': true; | ||
| internalEvents: { | ||
| "": { type: "" }; | ||
| "done.invoke.auth.authorized:invocation[0]": { type: "done.invoke.auth.authorized:invocation[0]"; data: unknown; __tip: "See the XState TS docs to learn how to strongly type this." }; | ||
| "done.invoke.auth.introSlider:invocation[0]": { type: "done.invoke.auth.introSlider:invocation[0]"; data: unknown; __tip: "See the XState TS docs to learn how to strongly type this." }; | ||
| "xstate.init": { type: "xstate.init" }; | ||
| }; | ||
| invokeSrcNameMap: { | ||
| "generatePasscodeSalt": "done.invoke.auth.introSlider:invocation[0]"; | ||
| "initializeFaceSdkModel": "done.invoke.auth.authorized:invocation[0]"; | ||
| }; | ||
| missingImplementations: { | ||
| actions: never; | ||
| delays: never; | ||
| guards: never; | ||
| services: never; | ||
| }; | ||
| eventsCausingActions: { | ||
| "requestStoredContext": "BIOMETRIC_CANCELLED" | "xstate.init"; | ||
| "setBiometrics": "SETUP_BIOMETRICS"; | ||
| "setContext": "STORE_RESPONSE"; | ||
| "setInitialDownloadDone": "INITIAL_DOWNLOAD_DONE"; | ||
| "setIsToggleFromSettings": "CHANGE_METHOD"; | ||
| "setLanguage": "SETUP_BIOMETRICS" | "SETUP_PASSCODE"; | ||
| "setOnboardingDone": "ONBOARDING_DONE"; | ||
| "setPasscode": "SETUP_PASSCODE"; | ||
| "setPasscodeSalt": "done.invoke.auth.introSlider:invocation[0]"; | ||
| "setTourGuide": "SET_TOUR_GUIDE"; | ||
| "storeContext": "INITIAL_DOWNLOAD_DONE" | "ONBOARDING_DONE" | "SETUP_BIOMETRICS" | "SETUP_PASSCODE" | "STORE_RESPONSE" | "done.invoke.auth.authorized:invocation[0]" | "done.invoke.auth.introSlider:invocation[0]"; | ||
| }; | ||
| eventsCausingDelays: { | ||
|
|
||
| }; | ||
| eventsCausingGuards: { | ||
| "hasBiometricSet": ""; | ||
| "hasData": "STORE_RESPONSE"; | ||
| "hasLanguageset": ""; | ||
| "hasPasscodeSet": ""; | ||
| }; | ||
| eventsCausingServices: { | ||
| "generatePasscodeSalt": "SELECT"; | ||
| "initializeFaceSdkModel": "LOGIN" | "SETUP_BIOMETRICS" | "SETUP_PASSCODE"; | ||
| }; | ||
| matchesStates: "authorized" | "checkingAuth" | "init" | "introSlider" | "languagesetup" | "savingDefaults" | "settingUp" | "unauthorized"; | ||
| tags: never; | ||
| } | ||
|
|
||
| export interface Typegen0 { | ||
| '@@xstate/typegen': true; | ||
| internalEvents: { | ||
| '': {type: ''}; | ||
| 'done.invoke.auth.authorized:invocation[0]': { | ||
| type: 'done.invoke.auth.authorized:invocation[0]'; | ||
| data: unknown; | ||
| __tip: 'See the XState TS docs to learn how to strongly type this.'; | ||
| }; | ||
| 'done.invoke.auth.introSlider:invocation[0]': { | ||
| type: 'done.invoke.auth.introSlider:invocation[0]'; | ||
| data: unknown; | ||
| __tip: 'See the XState TS docs to learn how to strongly type this.'; | ||
| }; | ||
| 'xstate.init': {type: 'xstate.init'}; | ||
| }; | ||
| invokeSrcNameMap: { | ||
| generatePasscodeSalt: 'done.invoke.auth.introSlider:invocation[0]'; | ||
| initializeFaceSdkModel: 'done.invoke.auth.authorized:invocation[0]'; | ||
| }; | ||
| missingImplementations: { | ||
| actions: never; | ||
| delays: never; | ||
| guards: never; | ||
| services: never; | ||
| }; | ||
| eventsCausingActions: { | ||
| requestStoredContext: 'BIOMETRIC_CANCELLED' | 'xstate.init'; | ||
| setBiometrics: 'SETUP_BIOMETRICS'; | ||
| setContext: 'STORE_RESPONSE'; | ||
| setInitialDownloadDone: 'INITIAL_DOWNLOAD_DONE'; | ||
| setIsToggleFromSettings: 'CHANGE_METHOD'; | ||
| setLanguage: 'SETUP_BIOMETRICS' | 'SETUP_PASSCODE'; | ||
| setOnboardingDone: 'ONBOARDING_DONE'; | ||
| setPasscode: 'SETUP_PASSCODE' | 'UPGRADE_PASSCODE_HASH'; | ||
| setPasscodeSalt: 'done.invoke.auth.introSlider:invocation[0]'; | ||
| setTourGuide: 'SET_TOUR_GUIDE'; | ||
| storeContext: | ||
| | 'INITIAL_DOWNLOAD_DONE' | ||
| | 'ONBOARDING_DONE' | ||
| | 'SETUP_BIOMETRICS' | ||
| | 'SETUP_PASSCODE' | ||
| | 'STORE_RESPONSE' | ||
| | 'UPGRADE_PASSCODE_HASH' | ||
| | 'done.invoke.auth.authorized:invocation[0]' | ||
| | 'done.invoke.auth.introSlider:invocation[0]'; | ||
| }; | ||
| eventsCausingDelays: {}; | ||
| eventsCausingGuards: { | ||
| hasBiometricSet: ''; | ||
| hasData: 'STORE_RESPONSE'; | ||
| hasLanguageset: ''; | ||
| hasPasscodeSet: ''; | ||
| }; | ||
| eventsCausingServices: { | ||
| generatePasscodeSalt: 'SELECT'; | ||
| initializeFaceSdkModel: 'LOGIN' | 'SETUP_BIOMETRICS' | 'SETUP_PASSCODE'; | ||
| }; | ||
| matchesStates: | ||
| | 'authorized' | ||
| | 'checkingAuth' | ||
| | 'init' | ||
| | 'introSlider' | ||
| | 'languagesetup' | ||
| | 'savingDefaults' | ||
| | 'settingUp' | ||
| | 'unauthorized'; | ||
| tags: never; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.