<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@contract-case/case-definition-dsl](./case-definition-dsl.md) &gt; [matchers](./case-definition-dsl.matchers.md) &gt; [http](./case-definition-dsl.matchers.http.md) &gt; [BearerTokenHeaderValue](./case-definition-dsl.matchers.http.bearertokenheadervalue.md)

## matchers.http.BearerTokenHeaderValue class

Matches the value part of a OIDC or OAuth header with the supplied token - useful in conjunction with the StateVariable matcher

**Signature:**

```typescript
export declare class BearerTokenHeaderValue extends StringPrefix
```

**Extends:** [StringPrefix](./case-definition-dsl.matchers.strings.stringprefix.md)

## Constructors

<table><thead><tr><th>

Constructor

</th><th>

Modifiers

</th><th>

Description

</th></tr></thead>
<tbody><tr><td>

[(constructor)(token)](./case-definition-dsl.matchers.http.bearertokenheadervalue._constructor_.md)

</td><td>

</td><td>

Matches the value part of a OIDC or OAuth header with the supplied token - useful in conjunction with the StateVariable matcher

</td></tr>
</tbody></table>

## Methods

<table><thead><tr><th>

Method

</th><th>

Modifiers

</th><th>

Description

</th></tr></thead>
<tbody><tr><td>

[toJSON()](./case-definition-dsl.matchers.http.bearertokenheadervalue.tojson.md)

</td><td>

</td><td>

For non-TypeScript implementations (see `AnyMatcher.toJSON`<!-- -->)

</td></tr>
</tbody></table>
