You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
prevent use of common password using the haveibeenpwned password api (#958)
* prevent use of common password using the haveibeenpwned password api
* made requested chages
1. Reduced the core logic by extracting it in custom function in auth.server.ts
2. added timeout to the request to skip the check if request takes more than 1s
3. skips the check if request fails
4. added msw mock so that we don't depend upon it in development and testing
* Update app/utils/auth.server.ts
Co-authored-by: Kent C. Dodds <[email protected]>
* requested changes made
1. Added warning in case if the error is not AbortError to get more info about the error
2. updated the msw mock to follow convention of other msw mocks
* renamed the common-password to pwnedpasswords
---------
Co-authored-by: Kent C. Dodds <[email protected]>
0 commit comments