diff --git a/apps/api/src/app/credentials/credentials.service.ts b/apps/api/src/app/credentials/credentials.service.ts index 50d12b27..d82f975f 100644 --- a/apps/api/src/app/credentials/credentials.service.ts +++ b/apps/api/src/app/credentials/credentials.service.ts @@ -75,8 +75,11 @@ export class CredentialsService { /** * Add a member to the credential group if they meet the right credential criteria. - * @param oAuthCode OAuth code to exchange for an access token. * @param OAuthState OAuth state to prevent forgery attacks. + * @param oAuthCode OAuth code to exchange for an access token. + * @param address Account address. + * @param network Network name. + * @param blockNumber Block number. * @returns Redirect URI */ async addMember( diff --git a/apps/dashboard/src/pages/credentials.tsx b/apps/dashboard/src/pages/credentials.tsx index 2338ec35..55daf767 100644 --- a/apps/dashboard/src/pages/credentials.tsx +++ b/apps/dashboard/src/pages/credentials.tsx @@ -64,7 +64,7 @@ export default function CredentialsPage() { if (state && admin && network) { const redirectUrl = await addMemberByCredentials( state, - "", + undefined, admin.address, network, blockNumberVal @@ -108,9 +108,7 @@ export default function CredentialsPage() { const clientRedirectUri = await addMemberByCredentials( oAuthState, - oAuthCode, - "", - "" + oAuthCode ) if (clientRedirectUri) {