near / fast-auth-signer

https://fast-auth-signer.vercel.app
MIT License
29 stars 8 forks source link

Supporting Bitwarden password manager for fast-auth #222

Closed hcho112 closed 2 months ago

hcho112 commented 2 months ago

This PR contains changes to support Bitwarden password manager on using passkey.

Previously, Bitwarden password chrome plugin wasn't supported because they returned their own data format of browser Credentials. (Details on investigation and solutions are recorded on this issue)

With this version upgrade, fast-auth will support Bitwarden Chrome extension without changing existing flow.

To test this PR, use following comment to launch fast-auth with https. (Bitwarden only works if the web app with https)

  1. Install Bitwarden Chrome extension

  2. Run below commend

    yarn && NETWORK_ID=testnet yarn run start --https
  3. Try to test create account flow

To replicate the issue, try to undo version change and run above flow and you will notice that it will return Error: Type error: expected ‘id’ or ‘rawId’ field of request to be ArrayBuffer, got rawId object and id string as per issue.

vercel[bot] commented 2 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
fast-auth-signer ✅ Ready (Inspect) Visit Preview Apr 30, 2024 5:52am