Skip to content

Replace @github/webauthn-json references with built-in browser methods#500

Merged
santiagorodriguez96 merged 3 commits into
cedarcode:masterfrom
ttanimichi:update-readme
Jul 3, 2026
Merged

Replace @github/webauthn-json references with built-in browser methods#500
santiagorodriguez96 merged 3 commits into
cedarcode:masterfrom
ttanimichi:update-readme

Conversation

@ttanimichi

@ttanimichi ttanimichi commented Jun 27, 2026

Copy link
Copy Markdown
Contributor

First of all, thank you so much for building and maintaining this amazing gem. It has been incredibly helpful and I truly appreciate all the work that has gone into it.

Summary

ref. https://github.com/github/webauthn-json/blob/7a29471446919d9b45864631f84816c026c9dad8/README.md

@github/webauthn-json was deprecated in March 2025, as all major browsers now natively support the following methods:

  • PublicKeyCredential.parseCreationOptionsFromJSON()
  • PublicKeyCredential.parseRequestOptionsFromJSON()
  • PublicKeyCredential.prototype.toJSON()

This PR updates the README to reflect that, replacing references to @github/webauthn-json with the built-in browser methods.

@santiagorodriguez96 santiagorodriguez96 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good! Thank you so much for your contribution! Just a couple of minor comments 🙂

Comment thread README.md Outdated
# Especially for handling the necessary decoding of the options, and sending the
# `PublicKeyCredential` object back to the server.
# For your frontend code, you might find the built-in browser methods useful.
# Especially the built-in `PublicKeyCredential.parseRequestOptionsFromJSON(options)` for decoding the options, and

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

To be honest I'm not convinced with starting the sentence with "Especially..." now – what do you think about:

# The built-in `PublicKeyCredential.parseRequestOptionsFromJSON(options)` allows you to decode the options,
# and the built-in `credential.toJSON()` to send the `PublicKeyCredential` object back to the server.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed ce8a745
English isn't my native language, so I trust your judgment more than mine.

Comment thread README.md Outdated
Comment on lines +195 to +196
# Especially the built-in `PublicKeyCredential.parseCreationOptionsFromJSON(options)` for decoding the options, and
# the built-in `credential.toJSON()` for sending the `PublicKeyCredential` object back to the server.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Same here!

Comment thread README.md Outdated
Comment thread README.md Outdated
# For your frontend code, you might find @github/webauthn-json npm package useful.
# Especially for handling the necessary decoding of the options, and sending the
# `PublicKeyCredential` object back to the server.
# For your frontend code, you might find the built-in browser methods useful.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Same here 🙂

ttanimichi and others added 2 commits July 3, 2026 16:44
Co-authored-by: Santiago Rodriguez <46354312+santiagorodriguez96@users.noreply.github.com>
@santiagorodriguez96

Copy link
Copy Markdown
Contributor

Thank you so much @ttanimichi ❤️

@santiagorodriguez96 santiagorodriguez96 merged commit 3080fc6 into cedarcode:master Jul 3, 2026
47 checks passed
@ttanimichi ttanimichi deleted the update-readme branch July 4, 2026 01:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants