Class SignInWithSessionTokenRequest
the request body for session token authentication
Inherited Members
Namespace: Unity.Services.Apis.PlayerAuthentication
Assembly: Unity.Services.Apis.dll
Syntax
[DataContract(Name = "SignInWithSessionTokenRequest")]
[Preserve]
public class SignInWithSessionTokenRequest
Constructors
SignInWithSessionTokenRequest(string, string)
Initializes a new instance of the SignInWithSessionTokenRequest class.
Declaration
[Preserve]
public SignInWithSessionTokenRequest(string nonce = null, string sessionToken = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | nonce | String value used to associate a Client session with an Id Token, and to mitigate replay attacks. If this field is provided, the nonce claim in response Id token has a matching value.. |
| string | sessionToken | The session token of the player. (required). |
Properties
Nonce
String value used to associate a Client session with an Id Token, and to mitigate replay attacks. If this field is provided, the nonce claim in response Id token has a matching value.
Declaration
[DataMember(Name = "nonce", EmitDefaultValue = false)]
[Preserve]
public string Nonce { get; set; }
Property Value
| Type | Description |
|---|---|
| string | String value used to associate a Client session with an Id Token, and to mitigate replay attacks. If this field is provided, the nonce claim in response Id token has a matching value. |
SessionToken
The session token of the player.
Declaration
[DataMember(Name = "sessionToken", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public string SessionToken { get; set; }
Property Value
| Type | Description |
|---|---|
| string | The session token of the player. |