tgstation-server
6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
src
Tgstation.Server.Host
GraphQL
Mutations
Payloads
LoginResult.cs
Go to the documentation of this file.
1
using
HotChocolate;
2
using
Tgstation.Server.Api.Models.Response
;
3
using
Tgstation.Server.Host.GraphQL.Scalars
;
4
using
Tgstation.Server.Host.Models
;
5
6
namespace
Tgstation.Server.Host.GraphQL.Mutations.Payloads
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]
27
public
TokenResponse
ToApi
()
28
=>
new
()
29
{
30
Bearer
=
Bearer
,
31
};
32
}
33
}
Tgstation.Server.Api.Models.Response.TokenResponse
Represents a JWT returned by the API.
Definition
TokenResponse.cs:9
Tgstation.Server.Host.GraphQL.Mutations.Payloads.LoginResult
Success response for a login attempt.
Definition
LoginResult.cs:12
Tgstation.Server.Host.GraphQL.Mutations.Payloads.LoginResult.ToApi
TokenResponse ToApi()
Tgstation.Server.Host.GraphQL.Mutations.Payloads.LoginResult.Bearer
required string Bearer
The JSON Web Token (JWT) to use as a Bearer token for accessing the server at non-login endpoints....
Definition
LoginResult.cs:18
Tgstation.Server.Host.GraphQL.Types.User
A user registered in the server.
Definition
User.cs:21
Tgstation.Server.Host.Models.User
Definition
User.cs:17
Tgstation.Server.Host.Models.ILegacyApiTransformable
Represents a host-side model that may be transformed into a TApiModel .
Definition
ILegacyApiTransformable{TApiModel}.cs:8
Tgstation.Server.Api.Models.Response
Definition
AdministrationResponse.cs:6
Tgstation.Server.Host.GraphQL.Mutations.Payloads
Definition
LoginResult.cs:7
Tgstation.Server.Host.GraphQL.Scalars
Definition
FileUploadTicketType.cs:2
Tgstation.Server.Host.Models
Definition
ChatBot.cs:9
Generated by
1.9.8