W3C home > Mailing lists > Public > public-webauthn@w3.org > June 2022

Re: [webauthn] Provide request deserialization, response serialization (#1683)

From: Lucas Garron via GitHub <sysbot+gh@w3.org>
Date: Thu, 30 Jun 2022 00:15:04 +0000
To: public-webauthn@w3.org
Message-ID: <issue_comment.created-1170613641-1656548102-sysbot+gh@w3.org>
I've implemented @MasterKale's API from #1703 in https://github.com/github/webauthn-json as `v2.0.0-alpha1`.

// @github/webauthn-json/browser-ponyfill

function supported(): boolean;

function parseCreationOptionsFromJSON(json: JSON): CredentialCreationOptions;
function parseRequestOptionsFromJSON(json: JSON): CredentialRequestOptions;

// You can call `.toJSON()` on the result.
function create(
  options: CredentialCreationOptions,
): Promise<PublicKeyCredential>;
// You can call `.toJSON()` on the result.
function get(options: CredentialRequestOptions): Promise<PublicKeyCredential>;

This ended up fairly simple thanks to @MasterKale's efforts, but I'd love to see if this also works for people in the wild, in case that can help shake out any issues before browsers implement the API.

GitHub Notification of comment by lgarron
Please view or discuss this issue at https://github.com/w3c/webauthn/issues/1683#issuecomment-1170613641 using your GitHub account

Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 30 June 2022 00:15:06 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 07:26:46 UTC