Skip to content

Commit

Permalink
Merge pull request #418 from privacy-scaling-explorations/ref/code-docs
Browse files Browse the repository at this point in the history
Update code comments
  • Loading branch information
vplasencia authored Mar 5, 2024
2 parents f59b123 + 9f079d7 commit f0537b5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 4 additions & 1 deletion apps/api/src/app/credentials/credentials.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
6 changes: 2 additions & 4 deletions apps/dashboard/src/pages/credentials.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export default function CredentialsPage() {
if (state && admin && network) {
const redirectUrl = await addMemberByCredentials(
state,
"",
undefined,
admin.address,
network,
blockNumberVal
Expand Down Expand Up @@ -108,9 +108,7 @@ export default function CredentialsPage() {

const clientRedirectUri = await addMemberByCredentials(
oAuthState,
oAuthCode,
"",
""
oAuthCode
)

if (clientRedirectUri) {
Expand Down

0 comments on commit f0537b5

Please sign in to comment.