diff options
| author | JP Dillingham <jp@dillingham.me> | 2023-01-07 19:54:38 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-07 19:54:38 -0600 |
| commit | acde02e5acf72e0649ef0f1fc47d377868a3c90e (patch) | |
| tree | 7c12350fc0f7ecdc11da8e7c86b18a126d15776e /src/slskd/Core/API | |
| parent | d74137862bdbfab63a6c1ad61b8a22f650d99332 (diff) | |
| parent | 8e6e0e17edf8f958b4b5bf072491d8198d9ef64c (diff) | |
| download | slskd-acde02e5acf72e0649ef0f1fc47d377868a3c90e.tar.gz | |
Merge pull request #829 from slskd/nags
Fix a bunch of linter warnings, include share upload in agent connection retry loop
Diffstat (limited to 'src/slskd/Core/API')
| -rw-r--r-- | src/slskd/Core/API/DTO/TokenResponse.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/slskd/Core/API/DTO/TokenResponse.cs b/src/slskd/Core/API/DTO/TokenResponse.cs index 85992917..47cfd335 100644 --- a/src/slskd/Core/API/DTO/TokenResponse.cs +++ b/src/slskd/Core/API/DTO/TokenResponse.cs @@ -49,7 +49,7 @@ namespace slskd.Core.API /// <summary> /// Gets the value of the Not Before claim from the Access Token. /// </summary> - public long NotBefore => long.Parse(JwtSecurityToken.Claims.SingleOrDefault(c => c.Type == "nbf").Value); + public long NotBefore => long.Parse(JwtSecurityToken.Claims.SingleOrDefault(c => c.Type == "nbf")?.Value ?? long.MaxValue.ToString()); /// <summary> /// Gets the Access Token string. |
