Skip to content

Commit

Permalink
docs(claims): getClaimId
Browse files Browse the repository at this point in the history
  • Loading branch information
JGiter committed Aug 5, 2022
1 parent a79c496 commit affaef7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions docs/api/classes/modules_claims.ClaimsService.md
Expand Up @@ -292,6 +292,8 @@ ___

**getClaimId**(`__namedParameters`): `Promise`<`string`\>

Generates claim id or returns id of existing claim with same data

#### Parameters

| Name | Type |
Expand All @@ -303,6 +305,8 @@ ___

`Promise`<`string`\>

claim identifier

___

### getClaimsByIssuer
Expand Down
6 changes: 5 additions & 1 deletion src/modules/claims/claims.service.ts
Expand Up @@ -700,7 +700,11 @@ export class ClaimsService {
return message.issuedToken;
}

// TODO: create docs annotations
/**
* Generates claim id or returns id of existing claim with same data
* @param {ClaimData} param.claimData - claim data
* @returns claim identifier
*/
async getClaimId({ claimData }: { claimData: ClaimData }) {
const services = await this._didRegistry.getServices();
const service = services.find(
Expand Down

0 comments on commit affaef7

Please sign in to comment.