tgstation-server
6.12.0
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
Microsoft.IdentityModel.JsonWebTokens;
2
3
namespace
Tgstation.Server.Api.Models.Response
4
{
8
public
sealed
class
TokenResponse
9
{
13
public
string
?
Bearer
{
get
;
set
; }
14
19
public
JsonWebToken
ParseJwt
() =>
new
(
Bearer
);
20
}
21
}
Tgstation.Server.Api.Models.Response.TokenResponse
Represents a JWT returned by the API.
Definition
TokenResponse.cs:9
Tgstation.Server.Api.Models.Response.TokenResponse.Bearer
string? Bearer
The value of the JWT.
Definition
TokenResponse.cs:13
Tgstation.Server.Api.Models.Response.TokenResponse.ParseJwt
JsonWebToken ParseJwt()
Parses the Bearer as a JsonWebToken.
Tgstation.Server.Api.Models.Response
Definition
AdministrationResponse.cs:6
Generated by
1.9.8