Skip to content

Commit 95effd3

Browse files
[Dashboard] Add server-wallet signAuthorization capability to wallet access token
1 parent 37b3d7f commit 95effd3

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
@@ -164,6 +164,29 @@ export async function createWalletAccessToken(props: {
164164
],
165165
type: "eoa:signTypedData",
166166
},
167+
{
168+
metadataPatterns: [
169+
{
170+
key: "projectId",
171+
rule: {
172+
pattern: props.project.id,
173+
},
174+
},
175+
{
176+
key: "teamId",
177+
rule: {
178+
pattern: props.project.teamId,
179+
},
180+
},
181+
{
182+
key: "type",
183+
rule: {
184+
pattern: "server-wallet",
185+
},
186+
},
187+
],
188+
type: "eoa:signAuthorization",
189+
},
167190
{
168191
metadataPatterns: [
169192
{

0 commit comments

Comments
 (0)