Skip to content

Commit

Permalink
fix: new service key encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
siandreev committed Jan 30, 2025
1 parent 360d883 commit 6b1c10d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/uikit/src/state/two-fa.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,7 @@ export const useTwoFAServiceConfig = () => {
throw new Error('2fa_public_key not found');
}

const servicePubKey = BigInt(
'0x' + Buffer.from(config['2fa_public_key'], 'base64').toString('hex')
);
const servicePubKey = BigInt('0x' + config['2fa_public_key']);

return {
baseUrl: config['2fa_api_url'],
Expand Down

0 comments on commit 6b1c10d

Please sign in to comment.