tgstation-server 6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
LoginResult.cs
Go to the documentation of this file.
1using HotChocolate;
5
7{
11 public sealed class LoginResult : ILegacyApiTransformable<TokenResponse>
12 {
16 [GraphQLType<JwtType>]
17 [GraphQLNonNullType]
18 public required string Bearer { get; init; }
19
23 public required Types.User User { get; init; }
24
26 [GraphQLIgnore]
28 => new()
29 {
30 Bearer = Bearer,
31 };
32 }
33}
Represents a JWT returned by the API.
required string Bearer
The JSON Web Token (JWT) to use as a Bearer token for accessing the server at non-login endpoints....
A user registered in the server.
Definition User.cs:21
Represents a host-side model that may be transformed into a TApiModel .