Skip to content

Add passkey authentication flow to UI.#3001

Open
svenbledt wants to merge 5 commits intoinvoiceninja:developfrom
svenbledt:sven/passkey-integration
Open

Add passkey authentication flow to UI.#3001
svenbledt wants to merge 5 commits intoinvoiceninja:developfrom
svenbledt:sven/passkey-integration

Conversation

@svenbledt
Copy link
Copy Markdown

Integrate WebAuthn helpers and passkey management/login UI so CI can validate passkey sign-in and settings behavior.

Integrate WebAuthn helpers and passkey management/login UI so CI can validate passkey sign-in and settings behavior.
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Feb 27, 2026

CLA assistant check
All committers have signed the CLA.

Signed-off-by: David Bomba <turbo124@gmail.com>
@turbo124
Copy link
Copy Markdown
Member

@beganovich i've pushed some fixes to make this work. could you please re-review.

Copy link
Copy Markdown
Member

@beganovich beganovich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking sharp! Please see comments.

return bytes.buffer;
}

export function prepareCreationOptions(publicKey: any) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible to provide types for these?

(also on lines 49, 65, 77, 103, 58, 70)

Comment on lines +267 to +274
<Button
behavior="button"
disabled={isFormBusy}
variant="block"
onClick={handlePasskeyLogin}
>
{t('login_with_passkey')}
</Button>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should hide this button if there's no support for this API.

const useWebAuthnSupport = () => {
  const [isSupported, setIsSupported] = useState(false);
  
  useEffect(() => {
    setIsSupported(typeof window !== 'undefined' && 
                   typeof window.PublicKeyCredential !== 'undefined');
  }, []);
  
  return isSupported;
};

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants