Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: auth client keyType config option #689

Merged
merged 9 commits into from
Feb 15, 2023
Merged

Conversation

krpeacock
Copy link
Contributor

@krpeacock krpeacock commented Feb 15, 2023

Description

Rem.codes pointed out that the ECDSA keys weren't working in a localstorage implementation. This feature adds the option to choose between ECDSA and ED25519 keys for the auth client base key.

It will also warn developers if they are using a custom storage implementation with "ECDSA" that it may not work correctly, and that they may want to consider using ED25519.

How Has This Been Tested?

new unit test

Checklist:

  • My changes follow the guidelines in CONTRIBUTING.md.
  • The title of this PR complies with Conventional Commits.
  • I have edited the CHANGELOG accordingly.
  • I have made corresponding changes to the documentation.

@krpeacock krpeacock requested a review from a team as a code owner February 15, 2023 00:24
@krpeacock krpeacock changed the title Kyle/auth client key config feat: auth client keyType config option Feb 15, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Feb 15, 2023

size-limit report 📦

Path Size
@dfinity/agent 88.8 KB (0%)
@dfinity/candid 15.46 KB (0%)
@dfinity/principal 6.77 KB (0%)
@dfinity/auth-client 95.03 KB (+0.19% 🔺)
@dfinity/assets 91.55 KB (0%)
@dfinity/identity 91.94 KB (0%)
@dfinity/identity-secp256k1 230.09 KB (0%)

Copy link
Contributor

@dfx-json dfx-json left a comment

Choose a reason for hiding this comment

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

Left a couple comments. but otherwise, LGTM

packages/auth-client/src/index.ts Outdated Show resolved Hide resolved
packages/auth-client/src/index.ts Outdated Show resolved Hide resolved
@krpeacock krpeacock enabled auto-merge (squash) February 15, 2023 23:09
@krpeacock krpeacock merged commit bf6e338 into main Feb 15, 2023
@krpeacock krpeacock deleted the kyle/auth-client-key-config branch February 15, 2023 23:10
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.

None yet

2 participants