Skip to content

Commit

Permalink
Create grant upon making developer app (#3630)
Browse files Browse the repository at this point in the history
Co-authored-by: Nikki Kang <kangaroo233@gmail.com>
  • Loading branch information
nicoback2 and nicoback committed Jun 21, 2023
1 parent 2b009f8 commit 35c36ef
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions apps/audius-client/packages/common/src/api/developer-apps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ const developerAppsApi = createApi({
userId: encodedUserId
})

await sdk.grants.createGrant({
userId: encodedUserId,
appApiKey: apiKey
})

return { name, description, apiKey, apiSecret }
},
options: {
Expand Down

0 comments on commit 35c36ef

Please sign in to comment.