Skip to content
This repository has been archived by the owner on Aug 27, 2024. It is now read-only.

feat: pairing idempotency + persistence #81

Merged
merged 6 commits into from
Sep 14, 2023
Merged

Conversation

ganchoradkov
Copy link
Member

@ganchoradkov ganchoradkov commented Sep 13, 2023

Description

Updated Auth Client to be on par with Sign Client in terms of pairing handling. Also implemented several improvements such as the persistence of pending auth requests that were missing.
PR includes updates for

  • Persisting verifyContext as part of pending auth requests
  • Loading pending auth requests after client restart
  • Added persistence tests
  • Implemented pairing idempotency e.g. being able to rescan the same URI
  • Added exp, nbf to CACAO object as they were ignored even if populated by the peer

How Has This Been Tested?

dogfooding
tests

Due Dilligence

  • Breaking change
  • Requires a documentation update
  • Requires a e2e/integration test update

@ganchoradkov ganchoradkov self-assigned this Sep 13, 2023
@ganchoradkov ganchoradkov added the enhancement New feature or request label Sep 13, 2023
Copy link
Contributor

@JonathanConn JonathanConn left a comment

Choose a reason for hiding this comment

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

LGTM, nice persistence tests

@ganchoradkov ganchoradkov merged commit f38d20b into main Sep 14, 2023
1 check passed
@ganchoradkov ganchoradkov deleted the feat/update-auth-client branch September 14, 2023 07:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants