Skip to content

feat: add OIDC accounts to recovery methods view#74

Merged
matias-gonz merged 9 commits intofeat/oidc-account-recoveryfrom
oidc/fetch-added-accounts
Feb 20, 2025
Merged

feat: add OIDC accounts to recovery methods view#74
matias-gonz merged 9 commits intofeat/oidc-account-recoveryfrom
oidc/fetch-added-accounts

Conversation

@matias-gonz
Copy link
Member

@matias-gonz matias-gonz commented Feb 19, 2025

Description

Add OIDC accounts to recovery methods view

add getOidcAccounts
@github-actions
Copy link

github-actions bot commented Feb 19, 2025

Visit the preview URL for this PR (updated for commit 44f2e08):

https://zksync-auth-server-staging--pr74-oidc-fetch-added-acc-flep7pob.web.app

(expires Thu, 27 Feb 2025 19:23:48 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 509a9c9ea42583076f531c53cf2979c544d5d0b7

add oidc recovery card
remove console logs
@matias-gonz matias-gonz changed the title feat: add getOidcAccounts feat: add OIDC accounts to recovery methods view Feb 20, 2025
Copy link

@calvogenerico calvogenerico left a comment

Choose a reason for hiding this comment

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

I made a ton of comments, but the most important ones are the console.log and the one about Buffer.


export const parseOidcData = (oidcData: OidcData): ParsedOidcData => {
const hexToAscii = (hex: Hex): string =>
Buffer.from(hex.slice(2), "hex").toString("ascii");

Choose a reason for hiding this comment

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

I believe that using Buffer here is going to add the Buffer polyfill. If you want you can use ByteVector class that the circuit is exporting. That has a fromHex and a toAsciiString.

Copy link
Member Author

Choose a reason for hiding this comment

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

return;
} catch (err) {
getOidcAccountsError.value = err as Error;
return [];

Choose a reason for hiding this comment

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

Why different return types on each return?

type="danger"
class="text-sm lg:w-auto w-full"
@click="removeGuardian(method.address)"
v-if="method.method === 'Guardian'"

Choose a reason for hiding this comment

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

Do we have a remove for our guardians?
If we don't. Can you please add a task in notion?

</div>
<div class="flex items-center gap-3">
<SparklesIcon class="w-5 h-5 flex-shrink-0" />
<span class="font-mono text-sm">{{ method.digest }}</span>

Choose a reason for hiding this comment

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

This digest it's kind of pointless for the user. Let's leave it like this but let's brainstorm how to improve it. I'm adding a task for this.

Copy link
Member Author

Choose a reason for hiding this comment

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

use ByteVector instead of buffer
get oidc accounts return type
bump circuits
update lock
nx project dependsOn
@matias-gonz matias-gonz merged commit 1d4387f into feat/oidc-account-recovery Feb 20, 2025
4 checks passed
@matias-gonz matias-gonz deleted the oidc/fetch-added-accounts branch February 20, 2025 19:25
cpb8010 pushed a commit that referenced this pull request Jul 16, 2025
* feat: add getOidcAccounts

add getOidcAccounts

* feat: add oidc recovery card

add oidc recovery card

* chore: remove console logs

remove console logs

* refactor: use ByteVector instead of buffer

use ByteVector instead of buffer

* fix: get oidc accounts return type

get oidc accounts return type

* chore: bump circuits

bump circuits

* chore: update lock

update lock

* fix: nx project dependsOn

nx project dependsOn

* fix: add submodules

submodules
cpb8010 pushed a commit that referenced this pull request Jul 16, 2025
* feat: add getOidcAccounts

add getOidcAccounts

* feat: add oidc recovery card

add oidc recovery card

* chore: remove console logs

remove console logs

* refactor: use ByteVector instead of buffer

use ByteVector instead of buffer

* fix: get oidc accounts return type

get oidc accounts return type

* chore: bump circuits

bump circuits

* chore: update lock

update lock

* fix: nx project dependsOn

nx project dependsOn

* fix: add submodules

submodules
cpb8010 pushed a commit that referenced this pull request Jul 16, 2025
* feat: add getOidcAccounts

add getOidcAccounts

* feat: add oidc recovery card

add oidc recovery card

* chore: remove console logs

remove console logs

* refactor: use ByteVector instead of buffer

use ByteVector instead of buffer

* fix: get oidc accounts return type

get oidc accounts return type

* chore: bump circuits

bump circuits

* chore: update lock

update lock

* fix: nx project dependsOn

nx project dependsOn

* fix: add submodules

submodules
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.

2 participants