tgstation-server 5.17.3
The /tg/station 13 server suite
Loading...
Searching...
No Matches
TokenResponse.cs
Go to the documentation of this file.
1using System;
2
3using Microsoft.IdentityModel.JsonWebTokens;
4
6{
10 public sealed class TokenResponse
11 {
15 public string? Bearer { get; set; }
16
20 [Obsolete("Will be removed in a future API version")]
21 public DateTimeOffset? ExpiresAt { get; set; }
22
27 public JsonWebToken ParseJwt() => new (Bearer);
28 }
29}
Represents a JWT returned by the API.
JsonWebToken ParseJwt()
Parses the Bearer as a JsonWebToken.
DateTimeOffset? ExpiresAt
When the TokenResponse expires.