Class SteamLoginResult
- Namespace
- RustPlusApi.Fcm.Registration
- Assembly
- RustPlusApi.Fcm.Registration.dll
The Steam identity captured from the Facepunch login redirect — the auth token needed to register the device with Rust Companion, plus the Steam64 ID of the account that signed in.
public sealed record SteamLoginResult : IEquatable<SteamLoginResult>
- Inheritance
-
SteamLoginResult
- Implements
- Inherited Members
Constructors
SteamLoginResult(ulong, string)
The Steam identity captured from the Facepunch login redirect — the auth token needed to register the device with Rust Companion, plus the Steam64 ID of the account that signed in.
public SteamLoginResult(ulong SteamId, string Token)
Parameters
SteamIdulongThe Steam64 ID of the account that signed in. Surfaces again later as PlayerId once a server is paired.
TokenstringThe Rust+ auth token handed back by the Facepunch login. Must not be null, empty, or whitespace-only — enforced on construction and on
with.
Properties
SteamId
The Steam64 ID of the account that signed in. Surfaces again later as PlayerId once a server is paired.
public ulong SteamId { get; init; }
Property Value
Token
The Rust+ auth token handed back by the Facepunch login.
public string Token { get; init; }
Property Value
Remarks
Not an auto property, and IDE0032 is suppressed on the backing field accordingly:
the init accessor validates, so an auto property would let
with { Token = "" } past the check the constructor enforces.
Exceptions
- ArgumentException
Thrown when assigned a null, empty, or whitespace-only value.