Gillardo
Gillardo

Reputation: 9828

What are the default Lifetime values for openiddict tokens

Very simple question, i would just like to know what the default values are set in openiddict 3.0+

Tokens are

Thanks in advance.

Upvotes: 4

Views: 3562

Answers (1)

Tore Nestenius
Tore Nestenius

Reputation: 19941

You find the default lifetimes of the different tokens in the source code here:

https://github.com/openiddict/openiddict-core/blob/dev/src/OpenIddict.Server/OpenIddictServerOptions.cs

The most important lifetimes are:

public TimeSpan? AuthorizationCodeLifetime { get; set; } = TimeSpan.FromMinutes(5);
public TimeSpan? AccessTokenLifetime { get; set; } = TimeSpan.FromHours(1);
public TimeSpan? IdentityTokenLifetime { get; set; } = TimeSpan.FromMinutes(20);
public TimeSpan? RefreshTokenLifetime { get; set; } = TimeSpan.FromDays(14);
public TimeSpan? UserCodeLifetime { get; set; } = TimeSpan.FromMinutes(10);

Upvotes: 17

Related Questions