Class GenerateCodeRequest
Request for generating a sign in code.
Inherited Members
Namespace: Unity.Services.Apis.PlayerAuthentication
Assembly: Unity.Services.Apis.dll
Syntax
[DataContract(Name = "GenerateCodeRequest")]
[Preserve]
public class GenerateCodeRequest
Constructors
GenerateCodeRequest(string, string)
Initializes a new instance of the GenerateCodeRequest class.
Declaration
[Preserve]
public GenerateCodeRequest(string identifier = null, string codeChallenge = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | identifier | Human-readable string to identify the requester device.. |
| string | codeChallenge | SHA-256 string challenge for PKCE validation (required). |
Properties
CodeChallenge
SHA-256 string challenge for PKCE validation
Declaration
[DataMember(Name = "codeChallenge", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public string CodeChallenge { get; set; }
Property Value
| Type | Description |
|---|---|
| string | SHA-256 string challenge for PKCE validation |
Identifier
Human-readable string to identify the requester device.
Declaration
[DataMember(Name = "identifier", EmitDefaultValue = false)]
[Preserve]
public string Identifier { get; set; }
Property Value
| Type | Description |
|---|---|
| string | Human-readable string to identify the requester device. |