From 35c36efd6b0dd8995a30038777c7d76faf3900ed Mon Sep 17 00:00:00 2001 From: nicoback2 <36916764+nicoback2@users.noreply.github.com> Date: Wed, 21 Jun 2023 16:06:37 -0400 Subject: [PATCH] Create grant upon making developer app (#3630) Co-authored-by: Nikki Kang --- apps/audius-client/packages/common/src/api/developer-apps.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/audius-client/packages/common/src/api/developer-apps.ts b/apps/audius-client/packages/common/src/api/developer-apps.ts index ea29b9f8824..3671fce1244 100644 --- a/apps/audius-client/packages/common/src/api/developer-apps.ts +++ b/apps/audius-client/packages/common/src/api/developer-apps.ts @@ -65,6 +65,11 @@ const developerAppsApi = createApi({ userId: encodedUserId }) + await sdk.grants.createGrant({ + userId: encodedUserId, + appApiKey: apiKey + }) + return { name, description, apiKey, apiSecret } }, options: {