Skip to content

Commit

Permalink
Update delegation.ts (#764)
Browse files Browse the repository at this point in the history
Template literal was compiling incorrectly, causing a space to be added in the middle of the BigInt conversion, causing a throw on AuthClient.create(), causing _deleteStorage() to be called, preventing some users from being authenticated to call anything after connecting.
  • Loading branch information
dgdg-app authored Oct 31, 2023
1 parent d3eb416 commit 842b239
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/identity/src/identity/delegation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ export class DelegationChain {
return {
delegation: new Delegation(
_parseBlob(pubkey),
BigInt(`0x${expiration}`), // expiration in JSON is an hexa string (See toJSON() below).
BigInt('0x' + expiration), // expiration in JSON is an hexa string (See toJSON() below).
targets &&
targets.map((t: unknown) => {
if (typeof t !== 'string') {
Expand Down

0 comments on commit 842b239

Please sign in to comment.