#### [Abblix\.Oidc\.Server](https://www.abblix.com/en/docs/api/abblix-oidc-server 'index')
### [Abblix\.Oidc\.Server\.Features\.RandomGenerators](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.RandomGenerators 'Abblix\.Oidc\.Server\.Features\.RandomGenerators')

## ITokenIdGenerator Interface

Produces unique identifiers for JSON Web Tokens, used as the `jti` claim defined in RFC 7519 §4\.1\.7\.
A unique `jti` per token is required to support replay detection and one\-time token semantics, so
implementations must generate values with sufficient entropy to make collisions and guessing impractical\.

```csharp
public interface ITokenIdGenerator
```

Derived  
↳ [TokenIdGenerator](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.RandomGenerators.TokenIdGenerator 'Abblix\.Oidc\.Server\.Features\.RandomGenerators\.TokenIdGenerator')
### Methods

## ITokenIdGenerator\.GenerateTokenId\(\) Method {#Abblix.Oidc.Server.Features.RandomGenerators.ITokenIdGenerator.GenerateTokenId()}

Generates a new unique identifier suitable for the `jti` claim of a JWT\.

```csharp
string GenerateTokenId();
```

#### Returns
[System\.String](https://learn.microsoft.com/en-us/dotnet/api/system.string 'System\.String')  
A unique identifier suitable for use as a JWT ID\.
