tgstation-server
5.17.3
The /tg/station 13 server suite
Loading...
Searching...
No Matches
src
Tgstation.Server.Api
Models
Response
TokenResponse.cs
Go to the documentation of this file.
1
using
System;
2
3
using
Microsoft.IdentityModel.JsonWebTokens;
4
5
namespace
Tgstation.Server.Api.Models.Response
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
}
Tgstation.Server.Api.Models.Response.TokenResponse
Represents a JWT returned by the API.
Definition:
TokenResponse.cs:11
Tgstation.Server.Api.Models.Response.TokenResponse.Bearer
string? Bearer
The value of the JWT.
Definition:
TokenResponse.cs:15
Tgstation.Server.Api.Models.Response.TokenResponse.ParseJwt
JsonWebToken ParseJwt()
Parses the Bearer as a JsonWebToken.
Tgstation.Server.Api.Models.Response.TokenResponse.ExpiresAt
DateTimeOffset? ExpiresAt
When the TokenResponse expires.
Definition:
TokenResponse.cs:21
Tgstation.Server.Api.Models.Response
Definition:
AdministrationResponse.cs:4
Generated by
1.9.5