This repository was archived by the owner on Aug 27, 2024. It is now read-only.
Releases: WalletConnect/auth-client-js
Releases · WalletConnect/auth-client-js
2.1.2
What's Changed
- feat: pairing idempotency + persistence by @ganchoradkov in #81
- feat: POST auth requests to verify & throw on failed publish by @ganchoradkov in #82
Full Changelog: 2.1.1...2.1.2
2.1.1
What's Changed
- chore: prep for
2.1.0release by @ganchoradkov in #77 - fix: update homepage URL in package.json by @matias-la in #78
- chore(deps): updates @walletconnect/* deps to latest by @bkrem in #80
New Contributors
- @matias-la made their first contribution in #78
Full Changelog: 2.1.0...2.1.1
2.1.0
What's Changed
- Feat/pairing topic to pend req by @JonathanConn in #71
- Feat/verify api by @JonathanConn in #73
- Moved verifyContext by @JonathanConn in #75
- chore: updates
@walletconnectdeps to2.7.2by @ganchoradkov in #76
New Contributors
- @JonathanConn made their first contribution in #71
Full Changelog: 2.0.7...2.1.0
2.0.7
What's Changed
- chore: @WalletConnect deps bump by @ganchoradkov in #69
Full Changelog: 2.0.6...2.0.7
2.0.6
2.0.5
What's Changed
- docs: adds missing publishing steps by @bkrem in #65
- Update engines requirement by @0xasimetriq in #66
Full Changelog: 2.0.4...2.0.5
2.0.4
2.0.3
v2.0.0
What's Changed
- feat: canary by @ganchoradkov in #49
- feat: canary metrics by @ganchoradkov in #50
- fix: canary env params by @ganchoradkov in #51
- feat: multi address by @ganchoradkov in #53
Important changes when upgrading from 1.x to 2.0.0
- BREAKING CHANGE
authClient.respond(params, iss)requires an additional paramiss - new
formatMessage(payload, iss)added to format incomingauthrequests
Usage example
authClient.on("auth_request", async ({ id, args }) => {
// the user’s address
const iss = `did:pkh:eip155:1:${WALLET_ADDRESS}`;
// format the cacao payload with the user’s address
const message = authClient.formatMessage(args.params.cacaoPayload, iss);
// This is a good point to trigger a UI event to provide the user
// with a button to accept or reject the authentication request,
// instead of automatically responding.
const signature = await wallet.signMessage(params.message);
await authClient.respond({
id: id,
signature: {
s: signature,
t: "eip191",
},
iss,
});
});
Full Changelog: 1.0.1...v2.0.0