Skip to content

Commit 33b0b6d

Browse files
[Dashboard] Add server-wallet signAuthorization capability to wallet access token (#7530)
1 parent cdc7d95 commit 33b0b6d

File tree

1 file changed

+23
-0
lines changed
  • apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/transactions/lib

1 file changed

+23
-0
lines changed

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/transactions/lib/vault.client.ts

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,29 @@ export async function createWalletAccessToken(props: {
362362
],
363363
type: "eoa:signTypedData",
364364
},
365+
{
366+
metadataPatterns: [
367+
{
368+
key: "projectId",
369+
rule: {
370+
pattern: props.project.id,
371+
},
372+
},
373+
{
374+
key: "teamId",
375+
rule: {
376+
pattern: props.project.teamId,
377+
},
378+
},
379+
{
380+
key: "type",
381+
rule: {
382+
pattern: "server-wallet",
383+
},
384+
},
385+
],
386+
type: "eoa:signAuthorization",
387+
},
365388
{
366389
metadataPatterns: [
367390
{

0 commit comments

Comments
 (0)