Skip to content

Commit

Permalink
Add extra data to oauth login
Browse files Browse the repository at this point in the history
  • Loading branch information
elv-kevin committed May 30, 2024
1 parent 0e919d6 commit 080abdc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/walletClient/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ class ElvWalletClient {
* - signingToken - Identical to `authToken`, but also includes the ability to perform arbitrary signatures with the custodial wallet. This token should be protected and should not be
* shared with third parties.
*/
async AuthenticateOAuth({idToken, tenantId, email, signerURIs, shareEmail=false, nonce, createRemoteToken=true, force=false}) {
async AuthenticateOAuth({idToken, tenantId, email, signerURIs, shareEmail=false, extraData={}, nonce, createRemoteToken=true, force=false}) {
let tokenDuration = 24;

if(!tenantId && this.selectedMarketplaceInfo) {
Expand All @@ -482,7 +482,7 @@ class ElvWalletClient {
tenantId = this.selectedMarketplaceInfo.tenantId;
}

await this.client.SetRemoteSigner({idToken, tenantId, signerURIs, extraData: { share_email: shareEmail }, unsignedPublicAuth: true});
await this.client.SetRemoteSigner({idToken, tenantId, signerURIs, extraData: { ...extraData, share_email: shareEmail }, unsignedPublicAuth: true});

let fabricToken, expiresAt;
if(createRemoteToken && this.client.signer.remoteSigner) {
Expand Down

0 comments on commit 080abdc

Please sign in to comment.