Skip to content

Commit

Permalink
feat(verifyVc): resolve conflicts and add formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
whitneypurdum committed Jul 13, 2022
2 parents 9800557 + fcbd34e commit b24f328
Show file tree
Hide file tree
Showing 11 changed files with 2,079 additions and 1,301 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 3
steps:
- uses: styfle/cancel-workflow-action@0.9.1
- uses: styfle/cancel-workflow-action@0.10.0
with:
access_token: ${{ github.token }}

Expand Down
2 changes: 2 additions & 0 deletions docs/CHANGELOG.md
@@ -1,3 +1,5 @@
## [6.0.0-alpha.28](https://github.com/energywebfoundation/iam-client-lib/compare/v6.0.0-alpha.27...v6.0.0-alpha.28) (2022-07-08)

## [6.0.0-alpha.27](https://github.com/energywebfoundation/iam-client-lib/compare/v6.0.0-alpha.26...v6.0.0-alpha.27) (2022-07-01)


Expand Down
40 changes: 17 additions & 23 deletions docs/api/classes/modules_cache_client.CacheClient.md
Expand Up @@ -55,10 +55,10 @@
- [getRolesDefinition](modules_cache_client.CacheClient.md#getrolesdefinition)
- [getStatusListCredential](modules_cache_client.CacheClient.md#getstatuslistcredential)
- [getSubOrganizationsByOrganization](modules_cache_client.CacheClient.md#getsuborganizationsbyorganization)
- [handleError](modules_cache_client.CacheClient.md#handleerror)
- [init](modules_cache_client.CacheClient.md#init)
- [initiateCredentialStatusUpdate](modules_cache_client.CacheClient.md#initiatecredentialstatusupdate)
- [isAuthEnabled](modules_cache_client.CacheClient.md#isauthenabled)
- [isAuthenticated](modules_cache_client.CacheClient.md#isauthenticated)
- [issueClaim](modules_cache_client.CacheClient.md#issueclaim)
- [login](modules_cache_client.CacheClient.md#login)
- [persistCredentialStatusUpdate](modules_cache_client.CacheClient.md#persistcredentialstatusupdate)
Expand Down Expand Up @@ -759,28 +759,6 @@ ICacheClient.getSubOrganizationsByOrganization

___

### handleError

**handleError**(`error`): `Promise`<`unknown`\>

**`Description`**

Interceptor of authentication errors. Queues failed requests and starts authentication process.

#### Parameters

| Name | Type | Description |
| :------ | :------ | :------ |
| `error` | `AxiosError`<`unknown`, `any`\> | Intercepted response from failed request |

#### Returns

`Promise`<`unknown`\>

Promise, which resolves with result of resending of failed request

___

### init

**init**(): `Promise`<`void`\>
Expand Down Expand Up @@ -825,6 +803,22 @@ ICacheClient.isAuthEnabled

___

### isAuthenticated

**isAuthenticated**(): `Promise`<`boolean`\>

Checks that auth token has been created, has not expired and corresponds to signer.
This is done by a request to the server because the auth token is stored in an HTTP-only cookie and
so the Javascript has no way to check its validity

#### Returns

`Promise`<`boolean`\>

true if cache client is authenticated server

___

### issueClaim

**issueClaim**(`issuer`, `message`): `Promise`<`void`\>
Expand Down
7 changes: 7 additions & 0 deletions docs/api/interfaces/modules_claims.Claim.md
Expand Up @@ -11,6 +11,7 @@
- [claimType](modules_claims.Claim.md#claimtype)
- [claimTypeVersion](modules_claims.Claim.md#claimtypeversion)
- [createdAt](modules_claims.Claim.md#createdat)
- [expirationTimestamp](modules_claims.Claim.md#expirationtimestamp)
- [id](modules_claims.Claim.md#id)
- [isAccepted](modules_claims.Claim.md#isaccepted)
- [isRejected](modules_claims.Claim.md#isrejected)
Expand Down Expand Up @@ -57,6 +58,12 @@ ___

___

### expirationTimestamp

`Optional` **expirationTimestamp**: `string`

___

### id

**id**: `string`
Expand Down
7 changes: 7 additions & 0 deletions docs/api/interfaces/modules_claims.IClaimIssuance.md
Expand Up @@ -16,6 +16,7 @@
- [claimIssuer](modules_claims.IClaimIssuance.md#claimissuer)
- [claimType](modules_claims.IClaimIssuance.md#claimtype)
- [claimTypeVersion](modules_claims.IClaimIssuance.md#claimtypeversion)
- [expirationTimestamp](modules_claims.IClaimIssuance.md#expirationtimestamp)
- [id](modules_claims.IClaimIssuance.md#id)
- [issuedToken](modules_claims.IClaimIssuance.md#issuedtoken)
- [onChainProof](modules_claims.IClaimIssuance.md#onchainproof)
Expand Down Expand Up @@ -52,6 +53,12 @@ ___

___

### expirationTimestamp

`Optional` **expirationTimestamp**: `number`

___

### id

**id**: `string`
Expand Down

0 comments on commit b24f328

Please sign in to comment.