Skip to content

Instantly share code, notes, and snippets.

@mateusz834
Last active March 9, 2025 16:06
Show Gist options
  • Save mateusz834/094427bb7888af77c8348e2f3dcf6f06 to your computer and use it in GitHub Desktop.
Save mateusz834/094427bb7888af77c8348e2f3dcf6f06 to your computer and use it in GitHub Desktop.
register a security key on google, not as a passkey.

Paste this to console:

const originalCreate = window.navigator.credentials.create;
window.navigator.credentials.create = async function (options) {
    if (options && options.publicKey && options.publicKey.authenticatorSelection) {
        options.publicKey.authenticatorSelection.residentKey = 'discouraged';
    }
    return originalCreate.call(window.navigator.credentials, options);
};
@surfaceflinger
Copy link

goat

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment