# 结构 AuthenticationResponse

> Reference the data structure for authentication service responses.

镜像[来自 Unity Authentication 服务的 API 响应](https://services.docs.unity.com/player-auth/v1/index.html#operation/ExternalTokenAuth)。

##### Include（包括）##include

```cpp
#include "Models/AuthenticationResponse.h"
```

##### 语法##syntax

```cpp
USTRUCT(BlueprintType)
struct AUTHENTICATION_API FAuthenticationResponse
```

## 字段##fields

### WasSuccessful##wassuccessful

响应是否成功。

#### 声明##declaration

```cpp
bool bWasSuccessful = false
```

#### 蓝图##blueprint

| **Name**            | **类型**                                                                                             | **默认值** | **蓝图属性类型**        | **蓝图属性类别**                        |                |
| :------------------ | :------------------------------------------------------------------------------------------------- | :------ | :---------------- | :-------------------------------- | -------------- |
| Was Successful（已成功） | [布尔值](https://docs.unrealengine.com/5.3/en-US/blueprint-variables-in-unreal-engine/#variabletypes) | `false` | BlueprintReadOnly | Unity Gaming Services（Unity 游戏服务） | Authentication |

#### C++##c++

| **Name**         | **类型** | **默认值** |
| :--------------- | :----- | :------ |
| `bWasSuccessful` | `bool` | `false` |

### UserId##userid

生成的用户 ID。

#### 声明##declaration

```cpp
FString UserId
```

#### 蓝图##blueprint

| **Name**       | **类型**                                                                                             | **蓝图属性类型**        | **蓝图属性类别**                        |                |
| :------------- | :------------------------------------------------------------------------------------------------- | :---------------- | :-------------------------------- | -------------- |
| User Id（用户 ID） | [字符串](https://docs.unrealengine.com/5.3/en-US/blueprint-variables-in-unreal-engine/#variabletypes) | BlueprintReadOnly | Unity Gaming Services（Unity 游戏服务） | Authentication |

#### C++##c++

| **Name** | **类型**                                                                                  |
| :------- | :-------------------------------------------------------------------------------------- |
| `UserId` | [FString](https://docs.unrealengine.com/5.3/en-US/API/Runtime/Core/Containers/FString/) |

### AccessToken##accesstoken

生成的身份验证访问令牌。

#### 声明##declaration

```cpp
FString AccessToken
```

#### 蓝图##blueprint

| **Name**           | **类型**                                                                                             | **蓝图属性类型**        | **蓝图属性类别**                        |                |
| :----------------- | :------------------------------------------------------------------------------------------------- | :---------------- | :-------------------------------- | -------------- |
| Access Token（访问令牌） | [字符串](https://docs.unrealengine.com/5.3/en-US/blueprint-variables-in-unreal-engine/#variabletypes) | BlueprintReadOnly | Unity Gaming Services（Unity 游戏服务） | Authentication |

#### C++##c++

| **Name**      | **类型**                                                                                  |
| :------------ | :-------------------------------------------------------------------------------------- |
| `AccessToken` | [FString](https://docs.unrealengine.com/5.3/en-US/API/Runtime/Core/Containers/FString/) |

### SessionToken##sessiontoken

生成的身份验证会话令牌。此令牌可用于让用户再次登录。

#### 声明##declaration

```cpp
FString SessionToken
```

#### 蓝图##blueprint

| **Name**            | **类型**                                                                                             | **蓝图属性类型**        | **蓝图属性类别**                        |                |
| :------------------ | :------------------------------------------------------------------------------------------------- | :---------------- | :-------------------------------- | -------------- |
| Session Token（会话令牌） | [字符串](https://docs.unrealengine.com/5.3/en-US/blueprint-variables-in-unreal-engine/#variabletypes) | BlueprintReadOnly | Unity Gaming Services（Unity 游戏服务） | Authentication |

#### C++##c++

| **Name**       | **类型**                                                                                  |
| :------------- | :-------------------------------------------------------------------------------------- |
| `SessionToken` | [FString](https://docs.unrealengine.com/5.3/en-US/API/Runtime/Core/Containers/FString/) |

### AuthorizedTime##authorizedtime

发送响应的时间。

#### 声明##declaration

```cpp
FDateTime AuthorizedTime
```

#### 蓝图##blueprint

| **Name**              | **类型**                                                                                                | **蓝图属性类型**        | **蓝图属性类别**                        |                |
| :-------------------- | :---------------------------------------------------------------------------------------------------- | :---------------- | :-------------------------------- | -------------- |
| Authorized Time（授权时间） | [日期时间结构](https://docs.unrealengine.com/5.3/en-US/blueprint-variables-in-unreal-engine/#variabletypes) | BlueprintReadOnly | Unity Gaming Services（Unity 游戏服务） | Authentication |

#### C++##c++

| **Name**         | **类型**                                                                                |
| :--------------- | :------------------------------------------------------------------------------------ |
| `AuthorizedTime` | [FDateTime](https://docs.unrealengine.com/5.3/en-US/API/Runtime/Core/Misc/FDateTime/) |

### ExpiresIn##expiresin

发送响应的时间。

#### 声明##declaration

```cpp
int32 ExpiresIn = 0
```

#### 蓝图##blueprint

| **Name**         | **类型**                                                                                            | **默认值** | **蓝图属性类型**        | **蓝图属性类别**                        |                |
| :--------------- | :------------------------------------------------------------------------------------------------ | :------ | :---------------- | :-------------------------------- | -------------- |
| Expires In（到期时间） | [整数](https://docs.unrealengine.com/5.3/en-US/blueprint-variables-in-unreal-engine/#variabletypes) | `0`     | BlueprintReadOnly | Unity Gaming Services（Unity 游戏服务） | Authentication |

#### C++##c++

| **Name**    | **类型**                                                                                                         | **默认值** |
| :---------- | :------------------------------------------------------------------------------------------------------------- | :------ |
| `ExpiresIn` | [int32](https://docs.unrealengine.com/5.3/en-US/API/Runtime/Core/GenericPlatform/FGenericPlatformTypes/int32/) | `0`     |
