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 authored Jun 21, 2023
1 parent a33de30 commit c9c531e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions 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 c9c531e

Please sign in to comment.