Skip to content

Commit

Permalink
feat: add additional data to auth resp
Browse files Browse the repository at this point in the history
  • Loading branch information
kyranjamie authored and janniks committed Feb 22, 2023
1 parent 8cfdbde commit 3c9b72f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/wallet-sdk/src/models/account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ export const makeAuthResponse = async ({
scopes = [],
gaiaHubUrl,
appPrivateKeyFromWalletSalt = null,
additionalData = {},
fetchFn = createFetchFn(),
}: {
account: Account;
Expand All @@ -78,6 +79,7 @@ export const makeAuthResponse = async ({
scopes?: string[];
gaiaHubUrl: string;
appPrivateKeyFromWalletSalt?: string | null;
additionalData?: Record<string, any>;
fetchFn?: FetchFn;
}) => {
const appPrivateKey = getAppPrivateKey({ account, appDomain });
Expand Down Expand Up @@ -121,6 +123,7 @@ export const makeAuthResponse = async ({
testnet: getStxAddress({ account, transactionVersion: TransactionVersion.Testnet }),
mainnet: getStxAddress({ account, transactionVersion: TransactionVersion.Mainnet }),
},
...additionalData,
},
{
profileUrl,
Expand Down

1 comment on commit 3c9b72f

@vercel
Copy link

@vercel vercel bot commented on 3c9b72f Feb 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.