Skip to content

Conversation

krpeacock
Copy link
Contributor

Description

Introduces a new library: @dfinity/use-auth-client

Simplifies managing authentication using best practices with hooks and effects.

Logout and onIdle also ends session for Actors managed by the auth hook.

Example app live at https://5ibdo-haaaa-aaaab-qajia-cai.icp0.io/

How Has This Been Tested?

New unit test and an example project. More testing would probably be worthwhile

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 August 2, 2024 23:10
Copy link
Contributor

github-actions bot commented Aug 2, 2024

size-limit report 📦

Path Size
@dfinity/agent 85.63 KB (0%)
@dfinity/candid 13.58 KB (0%)
@dfinity/principal 4.97 KB (0%)
@dfinity/auth-client 60.3 KB (0%)
@dfinity/assets 80.8 KB (0%)
@dfinity/identity 57.51 KB (0%)
@dfinity/identity-secp256k1 130.6 KB (0%)

@krpeacock krpeacock force-pushed the kai/use-auth-client branch from 06b5e04 to 0bbb09f Compare August 5, 2024 23:47
@krpeacock krpeacock merged commit 1e16997 into main Aug 6, 2024
@krpeacock krpeacock deleted the kai/use-auth-client branch August 6, 2024 17:41
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.

1 participant