Created
October 12, 2025 17:53
-
-
Save cyyynthia/8b2da62b8a35d1a4f3cd0d28a2861d08 to your computer and use it in GitHub Desktop.
Force Discord (and other websites with the same issue) to use Resident Credentials (aka Passkeys) instead of U2F credentials
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
| const createCreds = navigator.credentials.create; | |
| navigator.credentials.create = (creds) => { | |
| creds.publicKey.authenticatorSelection.residentKey = 'preferred'; | |
| return createCreds.call(navigator.credentials, creds); | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment