Skip to content

Commit

Permalink
Specify code language in README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
srinivas1729 authored Feb 2, 2024
1 parent 47db2d3 commit 1e25157
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ API on the device ([reference](https://developer.apple.com/documentation/devicec
The `challenge` should be the random value provided by the server to the client to generate the
Attestation. `keyId` is the identifier of the public key generated on the device.

```
```typescript
const result = await verifyAttestation(
{
appId: '<team-id>.<bundle-id>',
Expand Down Expand Up @@ -69,7 +69,7 @@ App Attest Certificate (from [here](https://www.apple.com/certificateauthority/p
If you want to specify a custom Root certificate to use (e.g. because the library's copy is stale),
use the following API before invoking `verifyAttestation`:

```
```typescript
setAppAttestRootCertificate(CUSTOM_ROOT_CERTIFICATE_IN_PEM_FORMAT);
```

Expand All @@ -81,7 +81,7 @@ The app should include Assertions for all important / high value requests (e.g.
high value request is missing an Assertion, the server should fail the request. Also if an
Assertion is present, the server should verify it as shown below or fail the request.

```
```typescript
const clientDataHash = // SHA-256 of request contents including challenge provided to client.

// Check that challenge in request matches challenge issued by server
Expand Down

0 comments on commit 1e25157

Please sign in to comment.