| | | 1 | | namespace ArturRios.Jwt; |
| | | 2 | | |
| | | 3 | | /// <summary> |
| | | 4 | | /// Configuration used to create and validate JSON Web Tokens. |
| | | 5 | | /// </summary> |
| | | 6 | | /// <param name="ExpirationInSeconds">The number of seconds after creation for which the token remains valid.</param> |
| | | 7 | | /// <param name="Issuer">The party that issues the token.</param> |
| | | 8 | | /// <param name="Audience">The intended recipient of the token.</param> |
| | | 9 | | /// <param name="Secret">The secret key used to sign and validate the token.</param> |
| | | 10 | | /// <param name="Claims">The claims, as key/value pairs, to embed in the token.</param> |
| | 99 | 11 | | public record JwtConfiguration(double ExpirationInSeconds, string Issuer, string Audience, string Secret, Dictionary<str |
| | | 12 | | { |
| | | 13 | | /// <summary> |
| | | 14 | | /// Initializes a new instance of the <see cref="JwtConfiguration"/> record with empty default values. |
| | | 15 | | /// </summary> |
| | 3 | 16 | | public JwtConfiguration() : this(0, string.Empty, string.Empty, string.Empty, new Dictionary<string, string>()) { } |
| | | 17 | | } |